/* Copyright 2015-2026 Quantum Metric, Inc. All rights reserved. For US patents see https://www.quantummetric.com/legal/patents/. For EULA see https://www.quantummetric.com/legal/eula. t4 7902b822627e9a3c645a202cc0104326f7464202 */ (function() { var setInterval = window['__zone_symbol__setInterval'] || window.setInterval; var clearInterval = window['__zone_symbol__clearInterval'] || window.clearInterval; var setTimeout = window['__zone_symbol__setTimeout'] || window.setTimeout; var console = window['console']; var clearTimeout = window['__zone_symbol__clearTimeout'] || window.clearTimeout; var MutationObserver = window['__zone_symbol__MutationObserver'] || window.MutationObserver; var queueMicrotask = window['__zone_symbol__queueMicrotask'] || window.queueMicrotask; var Promise = window['__zone_symbol__Promise'] || window.Promise; var aa=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b=0;d--){var e=a[d];if(b.call(c,e,d,a))return{nf:d,Ci:e}}return{nf:-1,Ci:void 0}}ja("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return ka(this,b,c).nf}});ha("findLastIndex",function(a){return a?a:function(b,c){return ka(this,b,c).nf}});function la(a){for(var b="",c=0;c{},va=new Set("button fieldset optgroup option select textarea input".split(" ")),wa=new Set("onabort onautocomplete onautocompleteerror onblur oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextmenu oncuechange ondblclick ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata onloadedmetadata onloadstart onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover onmouseup onmousewheel onpause onplay onplaying onprogress onratechange onreset onresize onscroll onseeked onseeking onselect onshow onsort onstalled onsubmit onsuspend ontimeupdate ontoggle onvolumechange onwaiting onwheel".split(" ")), y=Object.freeze({NONE:0,Ne:1,Se:2,Je:4,ERROR:8,Te:16,Hi:32,ud:64}),xa=Object.freeze({Kh:"config",Th:"sampling",gg:"api"});function ya(a,b,c,d){b&&c&&b!=c&&(d[b.toUpperCase()]&&d[c.toUpperCase()]?(a=d[c.toUpperCase()]/d[b.toUpperCase()]*a,a=B(a*100)/100):a="QM%20Conversion:%20"+b+"%20to%20"+c);return a} function za(a){var b=RegExp("\\D","g"),c=RegExp("(?:([,.]?(?:[0-9]+[,.]?)+[0-9]*))([^_\\-0-9]|$)").exec(a);if(c&&!(c.length<2)&&(a=c[1],a.length>0&&a[a.length-1]=="."&&(a=a.substring(0,a.length-1)),c=!1,a.lastIndexOf(",")!=a.length-3&&a.lastIndexOf(".")!=a.length-3||a.length==2||(c=!0),a=a.replace(b,"")))return b=parseFloat(a),Math.floor(c?b:b*100)}function Aa(a,b){return a?Object.getOwnPropertyDescriptor(a,b)||Aa(Object.getPrototypeOf(a),b):null} async function Ba(a){let b="";const c=window.TextDecoder&&new window.TextDecoder;try{const d=a.getReader();for(;;){const {value:e,done:f}=await d.read();if(f)break;a="";if(c)a=c.decode(e);else for(let g=0;g{let a=1;return()=>a++},Fa=(a,b=a.length)=>{const c=Array(b);for(let d=0;da.reduce((b,c)=>{if(typeof c==="string")return b.global.add(c),b;b.selected.push(c);return b},{global:new window.Set,selected:[]}),Ia=()=>crypto.randomUUID().replace(/-/g,""),Ja=a=>Object.entries(a).reduce((b,c)=>{const d=c[0];c=c[1];d.startsWith("event:")?b.E.push(c):b[d]=c;return b},{E:[]}),Ka=a=>typeof a==="string"&&a!=="s"&&a!=="exp",La=a=>{if(!a||typeof a!=="object")return!1;for(const b in a)if(Ka(b))return!0},Ma=(a,b,c)=>{if(!a||typeof a!=="string")return a;b.forEach(d=>{c.Array.from(a.matchAll(d)).reverse().forEach(e=> {e.indices.forEach((f,g,h)=>{f&&!g^h.length>1&&(a=a.slice(0,f[0])+"*****"+a.slice(f[1]))})})});return a},Pa=a=>a===null||a===void 0?"":a=a.toString().replace(/"|\r?\n|\r|\t|\\/g,"").replace(/[\u0000-\u001F]+/g,"").replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"").trim(),Qa=a=>a.split(/;\s*/).reduce((b,c)=>{const d=c.indexOf("="),e=c.slice(0,d).trim();c=c.slice(d+1).trim();e&&(b[e]=c);return b},{}),Ra=a=>{let b=0;for(;a.parentNode;)++b,a=a.parentNode,a.nodeType===11&&(a=a.host);return b},Sa=a=>{let b= 5381;for(const c of a)b=(b<<5)+b+c.codePointAt(0);return b>>>0};function Ta(a){if(typeof a==="string"&&a.length>0){try{return new URL(a)}catch(b){}try{return new URL(a,window.location.origin)}catch(b){}}throw Error(`Invalid URL: ${a}`);} function Ua(a,b,c){if(c.protocol.startsWith("data:"))return c.toString();if(c.search!==""){for(var d="_";c.searchParams.has(d);)d+="_";c.searchParams.set(d,"");c.searchParams.delete(d)}if(a.size&&c.search!==""){d=c.searchParams;let e=new URLSearchParams;for(let [f,g]of d.entries())a.has(f.toLowerCase())&&(g="*****"),e.append(f,g);c.search=e.toString()}a=c.toString();for(c=0;c{try{return new RegExp(a,b)}catch(c){}},I=a=>a.reduce((b,c)=>{const d=b.find(e=>e.f===c.f);if(!d)return b.push({...c}),b;d.p=d.p+"|"+c.p;return b},[]).flatMap(b=>Xa(b.p,b.f)||[]),J=(a,b)=>{for(let c=0;c=0?b:a.ca.now();return a.M} class Za{constructor(a,b,c=null){this.J=a;this.ca=a.ta;this.origin=c;this.K=b;this.Xb=!1;this.B={};this.ea=this.duration=this.M=0;this.O=this.J.g.Z.W();this.qa=[1,16,4,2,8,64];this.B.t="s";this.B["@"]=["w"];let d,e;if((d=this.J.D)==null?0:(e=d.config)==null?0:e.mode)this.B.mode=this.J.D.config.mode;this.J.xi=window.screen?window.screen.width:void 0;this.J.wi=window.screen?window.screen.height:void 0;this.B.x=this.J.xi;this.B.y=this.J.wi;this.J.jc=window.innerWidth||document.documentElement.clientWidth|| document.body.clientWidth;this.J.Mb=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.B.w=this.J.jc;this.B.h=this.J.Mb}Bd(){return this.qa.includes(this.K.navigationType)}Me(a){this.duration=a}Ld(){}lf(a){a&&(this.Xb=!0);this.B.re=this.J.Na;this.B.re===!1&&(this.B.rr=this.J.ui);this.B[")"]=this.J.rc>=5242880?"max-page-size-exceeded":this.J.Ub;this.B.s=this.J.rc;a=this.K.be();J(this.K.qb,this.J.D.aa.Vf)?this.B.pt=this.K.qb:this.B.pt=a;this.B.url=this.K.qb;this.B.ourl= this.K.M;this.J.customElements.size&&(this.B.cea=this.J.g.G.Array.from(this.J.customElements));if(a=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection)a.effectiveType&&(this.B.ce=a.effectiveType),a.downlink&&(this.B.cd=B(a.downlink)),a.rtt&&(this.B.cr=a.rtt);this.Le();this.B.z=this.J.je;this.J.frameId&&(this.B.QF=this.J.frameId);this.B.o=window.screen.orientation.angle;this.Bd()&&!this.Xb?(this.B.nt=this.K.navigationType,this.B.spa_d=this.duration?parseInt(this.duration, 10):null,a=this.ca.timeOrigin&&this.ca.getEntriesByType("navigation")[0]?this.J.g.Z.yb+this.M:this.O,this.B.pto=B(a),this.origin&&(this.B.r=this.origin.qb)):(this.B.nt=32,$a(this.J,this.B),this.B.n={type:cb(this.J,"type"),redirectCount:cb(this.J,"redirectCount")},document.referrer&&(a=Ua(this.J.D.aa.ac,this.J.D.aa.fc,Ta(document.referrer)),this.B.r=a,this.J.fa.set("lastUrl",Ta(a).toString())));this.J.Yc&&(this.B.ctx=this.J.Yc);this.B.vctx=this.J.Di;this.B.f=document.hasFocus();return this.B}sd(a){this.B.c= a}Le(){this.B.els=this.ea}};function db(a){return a.B[a.Ua]}function eb(a){if(a.Ua>0){if(db(a))return!0;a.Ua=0}return!1}function fb(a){if(eb(a))return Ya(db(a));a.M=a.J.ta.now();return a.M}function gb(a){return hb(a,a.eb,a.K)}function hb(a,b,c){a.Ua=a.J.g.Z.W();b=new Za(a.J,b,c);b.Ld(a.ca);a.ca="";a.B[a.Ua]=b;a.M>=0&&(Ya(b,a.M),a.M=-1);return a.Ua}function ib(a){a.eb=new Wa(a.J,32);const b=hb(a,a.eb,a.K);a.get(b).Xb=!0;return b} function jb(a,b){delete a.B[b];if(a.Ua===b){b=Object.keys(a.B);let c=Number.parseInt(b[0],void 0);if(b.length>1)for(let d=1;dc&&(c=e)}a.Ua=c||0}}function kb(a){return a.K?a.K.Ja:null}function lb(a,b){a.K=a.eb;a.eb=b;return gb(a)} function mb(a,b){const c=a.eb,d=b.Ja.pathname===c.Ja.pathname&&b.Ja.search===c.Ja.search&&b.Ja.hash!==c.Ja.hash;if(b.navigationType===4&&d||J(b.Ja.href,a.J.D.aa.Bi)||b.navigationType===16&&!a.J.D.config.monitorAllHashChanges)return!1;a=c.Ja.origin===b.Ja.origin&&c.Ja.pathname===b.Ja.pathname&&c.Ja.search===b.Ja.search&&c.Ja.hash===b.Ja.hash;return b.navigationType===1||!a&&c.qb!==b.qb?!0:!1} class nb{constructor(a){this.J=a;this.eb=new Wa(a,32);this.K=null;this.B={};this.Ua=0;this.ca="";this.M=-1;this.ea=!1}Bd(a){return eb(this)?(a=this.get(a))?a.Bd():!1:!1}Xb(a){return this.get(a)?this.get(a).Xb:!1}get(a){return this.B[a]}Ld(a){eb(this)?db(this).Ld(a):this.ca=a}Me(a){eb(this)&&db(this).Me(a)}Le(a){eb(this)&&(db(this).ea=a)}sd(a,b){this.get(a).sd(b)}lf(a){var b=this.B[a];jb(this,a);a=b.lf(!this.ea);this.ea=!0;b=this.J.g.Z.W()-1E4;for(let d of Object.keys(this.B))if(d<=b){delete this.B[d]; var c=Number.parseInt(d,void 0);this.Ua===c&&(this.Ua=0)}return a}be(){return this.eb.be()}};const ob=Ea();function pb(a,b){return function(...c){try{b.ma.get(this)||sb(b,this)}catch(d){}return a.apply(this,c)}}function sb(a,b){var c=b.effect.target;const d=b.effect.getKeyframes(),e=b.effect.getTiming(),f=ob();c=c?a.$.da(c):null;a.ma.set(b,f);b.effect&&a.ma.set(b.effect,f);a.log({t:"wa",v:"c",I:c,i:f,a:[d,e]});tb(a,b,f)} function ub(a){const b=Object.getOwnPropertyDescriptor(Element.prototype,"animate"),c=Object.getOwnPropertyDescriptor(Animation.prototype,"play"),d=Object.getOwnPropertyDescriptor(Animation.prototype,"pause"),e=Object.getOwnPropertyDescriptor(Animation.prototype,"reverse"),f=Object.getOwnPropertyDescriptor(Animation.prototype,"cancel"),g=Object.getOwnPropertyDescriptor(Animation.prototype,"finish"),h=Object.getOwnPropertyDescriptor(Animation.prototype,"updatePlaybackRate"),k=Object.getOwnPropertyDescriptor(Animation.prototype, "currentTime"),l=Object.getOwnPropertyDescriptor(Animation.prototype,"effect"),m=Object.getOwnPropertyDescriptor(Animation.prototype,"startTime"),n=Object.getOwnPropertyDescriptor(Animation.prototype,"playbackRate"),x=Object.getOwnPropertyDescriptor(window,"Animation"),r=Object.getOwnPropertyDescriptor(KeyframeEffect.prototype,"setKeyframes"),q=Object.getOwnPropertyDescriptor(KeyframeEffect.prototype,"target"),w=Object.getOwnPropertyDescriptor(KeyframeEffect.prototype,"composite"),D=Object.getOwnPropertyDescriptor(KeyframeEffect.prototype, "pseudoElement"),C=Object.getOwnPropertyDescriptor(window.AnimationEffect.prototype,"updateTiming");if(b&&b.configurable){const t=b.value;function p(...u){const z=t.apply(this,u);try{const A=ob(),W=a.$.da(this);a.ma.set(z,A);a.ma.set(z.effect,A);a.log({t:"wa",v:"c",I:W,i:A,a:u})}catch(A){}return z}if(a.J.D.config.temp.preserveNativeAnimationToString)try{const u=t.toString();Object.defineProperty(p,"toString",{value:function(){return u},writable:!0,configurable:!0})}catch(u){}Object.defineProperty(Element.prototype, "animate",{...b,value:p})}if(c&&c.configurable){const t=c.value;Object.defineProperty(Animation.prototype,"play",{...c,value:pb(function(...p){p=t.apply(this,p);try{const u=a.ma.get(this);if(!u)return p;a.log({t:"wa",v:"p",i:u})}catch(u){}return p},a)})}if(d&&d.configurable){const t=d.value;Object.defineProperty(Animation.prototype,"pause",{...d,value:pb(function(...p){p=t.apply(this,p);try{const u=a.ma.get(this);if(!u)return p;a.log({t:"wa",v:"s",i:u})}catch(u){}return p},a)})}if(e&&e.configurable){const t= e.value;Object.defineProperty(Animation.prototype,"reverse",{...e,value:pb(function(...p){p=t.apply(this,p);try{const u=a.ma.get(this);if(!u)return p;a.log({t:"wa",v:"r",i:u})}catch(u){}return p},a)})}if(f&&f.configurable){const t=f.value;Object.defineProperty(Animation.prototype,"cancel",{...f,value:pb(function(...p){p=t.apply(this,p);try{const u=a.ma.get(this);if(!u)return p;a.log({t:"wa",v:"x",i:u})}catch(u){}return p},a)})}if(g&&g.configurable){const t=g.value;Object.defineProperty(Animation.prototype, "finish",{...g,value:pb(function(...p){p=t.apply(this,p);try{const u=a.ma.get(this);if(!u)return p;a.log({t:"wa",v:"f",i:u})}catch(u){}return p},a)})}if(h&&h.writable){const t=h.value;Object.defineProperty(Animation.prototype,"updatePlaybackRate",{...h,value:pb(function(p,...u){const z=this.currentTime;u=t.call(this,p,...u);try{const A=a.ma.get(this);if(!A)return u;const W=this.currentTime;a.log({t:"wa",v:"a",i:A,p:"playbackRate",n:p});z!==W&&a.log({t:"wa",v:"a",i:A,p:"currentTime",n:W});this.playState!== "running"&&a.log({t:"wa",v:"s",i:A});this.playState==="running"&&a.log({t:"wa",v:"p",i:A})}catch(A){}return u},a)})}if(k&&k.configurable){const t=k.set;Object.defineProperty(Animation.prototype,"currentTime",{...k,set:pb(function(p){const u=t.call(this,p);try{const z=a.ma.get(this);if(!z)return u;a.log({t:"wa",v:"a",i:z,p:"currentTime",n:p})}catch(z){}return u},a)})}if(l&&l.configurable){const t=l.set;Object.defineProperty(Animation.prototype,"effect",{...l,set:pb(function(p){const u=this.effect, z=t.call(this,p);try{const A=a.ma.get(this);if(!A)return z;a.ma.set(p,A);a.ma.delete(u);const W=p.target?a.$.da(p.target):null,F=[p.getKeyframes(),p.getTiming()];a.log({t:"wa",v:"e",i:A,I:W,a:F});this.effect.pseudoElement&&a.log({t:"wa",v:":",i:A,n:this.effect.pseudoElement})}catch(A){}return z},a)})}if(m&&m.configurable){const t=m.set;Object.defineProperty(Animation.prototype,"startTime",{...m,set:pb(function(p){p=t.call(this,p);try{const u=a.ma.get(this);if(!u)return p;a.log({t:"wa",v:"a",i:u,p:"currentTime", n:this.currentTime})}catch(u){}return p},a)})}if(n&&n.configurable){const t=n.set;Object.defineProperty(Animation.prototype,"playbackRate",{...n,set:pb(function(p){const u=t.call(this,p);try{const z=a.ma.get(this);if(!z)return u;a.log({t:"wa",v:"a",i:z,p:"playbackRate",n:p})}catch(z){}return u},a)})}if(x&&x.configurable){const t=window.Animation;Object.defineProperty(window,"Animation",{...x,value:function(...p){p=new t(...p);try{const u=ob(),z=p.effect&&p.effect.target?a.$.da(p.effect.target):"", A=p.effect?[p.effect.getKeyframes(),p.effect.getTiming()]:[];a.ma.set(p,u);p.effect&&a.ma.set(p.effect,u);a.log({t:"wa",v:"c",I:z,i:u,a:A,p:"c"});p.effect&&p.effect.pseudoElement&&a.log({t:"wa",v:":",i:u,n:p.effect.pseudoElement})}catch(u){}return p}})}if(r&&r.configurable){const t=r.value;Object.defineProperty(KeyframeEffect.prototype,"setKeyframes",{...r,value:function(...p){const u=t.apply(this,p);try{const z=a.ma.get(this);if(!z)return u;a.log({t:"wa",v:"k",i:z,a:p})}catch(z){}return u}})}if(q&& q.configurable){const t=q.set;Object.defineProperty(KeyframeEffect.prototype,"target",{...q,set:function(p){const u=t.call(this,p);try{const z=a.ma.get(this);if(!z)return u;const A=p?a.$.da(p):null;a.log({t:"wa",v:"@",i:z,I:A})}catch(z){}return u}})}if(w&&w.configurable){const t=w.set;Object.defineProperty(KeyframeEffect.prototype,"composite",{...w,set:function(p){const u=t.call(this,p);try{const z=a.ma.get(this);if(!z)return u;a.log({t:"wa",v:"=",i:z,n:p})}catch(z){}return u}})}if(D&&D.configurable){const t= D.set;Object.defineProperty(KeyframeEffect.prototype,"pseudoElement",{...D,set:function(p){const u=t.call(this,p);try{const z=a.ma.get(this);if(!z)return u;a.log({t:"wa",v:":",i:z,n:p})}catch(z){}return u}})}if(C&&C.configurable){const t=C.value;Object.defineProperty(window.AnimationEffect.prototype,"updateTiming",{...C,value:function(...p){const u=t.apply(this,p);try{const z=a.ma.get(this);a.log({t:"wa",v:"u",i:z,a:p})}catch(z){}return u}})}} function tb(a,b,c){const d=b.playbackRate,e=b.playState;a.log({t:"wa",v:"a",i:c,p:"currentTime",n:b.currentTime});d!==1&&a.log({t:"wa",v:"a",i:c,p:"playbackRate",n:d});e==="paused"&&a.log({t:"wa",v:"s",i:c})}class vb{constructor(a,b,c){this.J=a;this.$=c;this.ma=new b.WeakMap}log(a){K(this.J,a)}};function wb(a,b){return typeof a.reportURL==="string"&&a.reportURL.length>0?a.reportURL:a.ingestBaseURL+"/horizon/"+b}function xb(a){return typeof a.hashResourceURL==="string"&&a.hashResourceURL.length>0?a.hashResourceURL:typeof a.ingestBaseURL==="string"&&a.ingestBaseURL.length>0?a.ingestBaseURL+"/resource-loader":""};class yb{constructor(){this.reject=this.resolve=null;this.promise=new Promise((a,b)=>{this.resolve=a;this.reject=b})}};const zb=/content:\s+"?(.+?)"?;/,Ab=/[^\u0000-\u00ff]/,Cb=(a,b,c=0)=>{if(c>10)return[];let d=[];try{if(!b.cache.has(a)||b.cache.get(a).length!==a.cssRules.length){const e=a.cssRules;for(let f=0;fAb.test(b)?`content: "\\${b.charCodeAt(0).toString(16)}";`: a;const Db=a=>a.cssText,Eb=a=>{var b=a.cssText;if(a instanceof window.CSSStyleRule&&(b.includes("grid-template:")&&a.style.gridTemplateAreas||a.style.all)){b=a.selectorText;a=a.style;var c="";for(let d=0;dEb(a),Gb=a=>Eb(a),Hb=a=>Eb(a).replace(/(?<=\[[^=\]"]*)(?0?`${c.hashResourceURL}/${b}`:`${xb(c)}/${b}/${a.L.sub}`}async function Jb(a,b){b=(new TextEncoder).encode(b);const {readable:c,writable:d}=new window.CompressionStream("deflate"),e=d.getWriter();e.write(b);e.close();return new Uint8Array(await (new a.L.g.G.wa.contentWindow.Response(c)).arrayBuffer())} async function Kb(a,b,c){const d={"Content-Type":"application/json"};let e=c;if(a.L.D.config.enableCompression&&"CompressionStream"in window&&"TextEncoder"in window)try{e=await Jb(a,c),d["Content-Encoding"]="deflate"}catch(f){}return a.L.g.G.wa.contentWindow.fetch(Ib(a,b),{method:"POST",headers:d,body:e,credentials:"omit"}).catch(f=>{L(a.L.ba,"rl-failure",{msg:f.message},"error")})}function Lb(a,b,c){c=c.map(d=>({hash:d,data:b[d],contentType:"text/css"}));Kb(a,"hashes",a.L.g.G.stringify(c))} function Mb(a,b){const c=Object.keys(b);c.length!==0&&Kb(a,"hash-check",a.L.g.G.stringify(c)).then(async function(d){if(d.status==200&&(d=await d.json(),d.length))return Lb(a,b,d)})}function Nb(a,b,c){a.K[b]=c;a.B||(a.B=setTimeout(async()=>{try{const d={...a.K};a.K=Object.create(null);Mb(a,d)}catch(d){}finally{a.B=null}},a.L.D.config.resourceUploadDelay))}class Ob{constructor(a){this.K=Object.create(null);this.B=null;this.L=a}};const Pb=a=>new Promise(b=>{function c(l){e||(e=!0,clearTimeout(f),f=null,a.removeEventListener("load",h,!1),a.removeEventListener("error",k,!1),b(l))}function d(){if(a.sheet)return c("polling");g++;g<10?f=setTimeout(d,500):c(!1)}let e=!1,f,g=0;const h=()=>{c(a.sheet?"node.addEventListener":!1)},k=()=>c(!1);a.addEventListener("load",h,!1);a.addEventListener("error",k,!1);f=setTimeout(d,500)});const Qb=/\//g,Rb=Ea();function Sb(a){a.L.fb.lb==="Safari"&&parseInt(a.L.fb.version,10)<17?a.B=Hb:a.L.fb.lb==="Safari"&&(a.B=Gb);a.L.fb.lb==="Chrome"&&(a.B=Fb)}async function Tb(a){return(await Ub(a)).replace(Qb,"~")} async function Vb(a,b){const c=a.register(b);let d=c.Md;d||b.ownerNode||(d=c.Md=Rb());b.ownerNode&&a.register(b.ownerNode,c);var e=Cb(b,{fi:a.B,cache:a.M});if(!e.length)return{v:"",i:d};e=e.join("");if(!xb(a.L.D.config)||a.L.D.aa.Pg&&b.ownerNode&&a.L.g.ia.matchesSelector(b.ownerNode,a.L.D.aa.Pg))return c.yi=e,{v:e,i:d};c.hash=await Tb(e);(b.ownerNode?a.L.D.aa.md||a.L.D.aa.ae&&a.L.g.ia.matchesSelector(b.ownerNode,a.L.D.aa.ae):a.L.D.aa.md)&&Nb(a.ca,c.hash,e);return{h:c.hash,i:d}} async function Wb(a,b){const c=a.L.g.G.contentWindow.document,d=c.adoptNode(b.cloneNode(!0));d.setAttribute("crossorigin","anonymous");d.removeAttribute("onload");d.addEventListener("error",()=>{a.L.xa("CORS_LINK",encodeURIComponent(b.href))});c.head.appendChild(d);if(!await Pb(d))return{v:""};const e=await Vb(a,d.sheet);c.head.removeChild(d);return e}async function Xb(a,b){if(await Pb(b)){var c=await Yb(a,b);a=a.L;c={t:"SDR",S:c};c.I=a.$.B(b).da;c.I&&K(a,c)}} async function Yb(a,b){if(a.L.D.aa.fe&&a.L.g.ia.matchesSelector(b,a.L.D.aa.fe))return{v:""};if(!b.sheet)return Xb(a,b),{v:""};try{var c=!b.sheet.cssRules}catch(d){c=!0}return c?Wb(a,b):Vb(a,b.sheet)}function Zb(a,b){const c=a.register(b);c.Wd||(c.Wd=new yb,a.K.push(b));return c.Wd.promise} function $b(a){const b=a.K;a.K=[];const c=[];b.forEach(d=>{const e=a.ma.get(d).Wd;c.push(e.promise);a.bb(d).then(e.resolve).catch(f=>{K(a.L,{t:"dbg",msg:"CSS serialization failed, stylesheet skipped",err:f&&f.message||String(f)});e.resolve({v:""})})});return Promise.all(c)} class ac{constructor(a){this.L=a;this.ma=new this.L.g.G.WeakMap;this.K=[];this.M=new this.L.g.G.WeakMap;this.B=Db;this.ca=new Ob(a)}register(a,b={}){this.ma.has(a)||this.ma.set(a,b);return this.ma.get(a)}unregister(a){this.M.delete(a);delete this.register(a).Wd;a.ownerNode&&this.unregister(a.ownerNode)}bb(a){return this.is(a,"CSSStyleSheet")?Vb(this,a):this.is(a,"HTMLLinkElement")?Yb(this,a):Promise.resolve({v:""})}is(a,b){const c=(a.ownerNode?a.ownerNode.ownerDocument:a.ownerDocument||document).defaultView, d=this.L.g.G.pd(a);return c&&a instanceof c[b]||d===`[object ${b}]`}};function bc(a,b){try{const c=a({test:[{age:100,old:!0,s:'[id="t"]'}]});return c!='{"test":[{"age":100,"old":true,"s":"[id=\\"t\\"]"}]}'?!1:b(c).test[0].age==100?!0:!1}catch(c){return!1}} const cc=(a,b)=>Array.isArray(b)||b===null||b===void 0||typeof b==="number"||typeof b==="string"||typeof b==="boolean"?b:Object.fromEntries(Object.keys(b).sort().map(c=>[c,cc(c,b[c])])),dc=a=>{if(a===null||a===void 0)return!0;a=typeof a;return a==="boolean"||a==="number"||a==="string"},ec=a=>a.replace(/~1/g,"/").replace(/~0/g,"~"),M=Symbol(),fc=(a,b,c)=>{if(b.length===0&&c(a))return a;if(a===null||typeof a!=="object")return M;if(b.length===0)for(var d in a){var e=fc(a[d],b,c);if(e!==M)return e}const [f, ...g]=b;for(const k in a){if(k!==f){d=fc(a[k],b,c);if(d===M)continue;return d}a:{var h=a[k];d=g;e=c;if(d.length===0&&!e(h)){d=M;break a}if(d.length===0){d=h;break a}for(const l of d){if(typeof h!=="object"||h===null||!(l in h)){d=M;break a}h=h[l]}d=e(h)?h:M}if(d===M){d=fc(a[k],b,c);if(d===M)continue;return d}return d}return M};function hc(a){const b={HTMLElement:null,Element:null,Node:null,Document:null,DocumentFragment:null,ShadowRoot:null,MutationObserver:null,JSON:null,XMLHttpRequest:null,EventTarget:null,Event:null,Window:null,Date:null,Array:null,WeakMap:null,Set:null},c=a.wa.contentWindow;for(var d of Object.keys(b))b[d]=c[d];const e=(Object.getOwnPropertyDescriptor(b.Element.prototype,"innerHTML")||{}).get;a.innerHTML=v=>e.call(v);const f=(Object.getOwnPropertyDescriptor(b.HTMLElement.prototype,"innerText")||{}).get; a.innerText=v=>f.call(v);const g=(Object.getOwnPropertyDescriptor(b.Element.prototype,"children")||Object.getOwnPropertyDescriptor(b.HTMLElement.prototype,"children")||{}).get;a.children=v=>{try{return g.call(v)}catch(H){}};const h=(Object.getOwnPropertyDescriptor(b.Element.prototype,"shadowRoot")||{}).get||function(){return null};a.shadowRoot=v=>h.call(v);const k=(Object.getOwnPropertyDescriptor(b.Document.prototype,"adoptedStyleSheets")||{}).get;if(k)if(b.ShadowRoot){const v=(Object.getOwnPropertyDescriptor(b.ShadowRoot.prototype, "adoptedStyleSheets")||{}).get;a.adoptedStyleSheets=H=>{if(ic(a,H))return v.call(H);if(H.nodeType===9)return k.call(H)}}else a.adoptedStyleSheets=v=>{if(v.nodeType===9)return k.call(v)};const l=b.Element.prototype.matches;a.matches=(v,H)=>H&&H.length>0?l.call(v,H):!1;const m=b.Element.prototype.querySelector,n=b.Document.prototype.querySelector,x=b.DocumentFragment.prototype.querySelector;a.ea=(v,H)=>H?v.nodeType===9?n.call(v,H):v.nodeType===11?x.call(v,H):m.call(v,H):null;const r=b.Element.prototype.querySelectorAll, q=b.Document.prototype.querySelectorAll,w=b.DocumentFragment.prototype.querySelectorAll;a.pb=(v,H)=>H?v.nodeType===9?q.call(v,H):v.nodeType===11?w.call(v,H):r.call(v,H):q.call(document,null);const D=b.Document.prototype.createNodeIterator;a.O=(v,H,Ga,Na)=>{D.call(v,H,Ga,Na)};const C=(Object.getOwnPropertyDescriptor(b.Node.prototype,"isConnected")||{}).get;C&&(a.isConnected=v=>C.call(v));const t=(Object.getOwnPropertyDescriptor(b.Node.prototype,"parentNode")||{}).get;a.parentNode=v=>t.call(v);const p= (Object.getOwnPropertyDescriptor(b.Node.prototype,"parentElement")||Object.getOwnPropertyDescriptor(b.HTMLElement.prototype,"parentElement")||{}).get;a.parentElement=v=>p.call(v);const u=(Object.getOwnPropertyDescriptor(b.Node.prototype,"childNodes")||{}).get;a.childNodes=v=>u.call(v);Object.getOwnPropertyDescriptor(b.Node.prototype,"firstChild");Object.getOwnPropertyDescriptor(b.Node.prototype,"lastChild");const z=(Object.getOwnPropertyDescriptor(b.Node.prototype,"textContent")||{}).get;a.textContent= v=>z.call(v);const A=b.Node.prototype.appendChild;a.appendChild=(v,H)=>A.call(v,H);const W=(Object.getOwnPropertyDescriptor(b.Node.prototype,"nextSibling")||{}).get;a.nextSibling=v=>W.call(v);Object.getOwnPropertyDescriptor(b.Node.prototype,"previousSibling");const F=(Object.getOwnPropertyDescriptor(b.Node.prototype,"nodeName")||{}).get;a.nodeName=v=>F.call(v);const R=b.Element.prototype.contains||b.HTMLElement.prototype.contains;a.contains=(v,H)=>R.call(v,H);const ba=b.Node.prototype.getRootNode; a.getRootNode=v=>ba.call(v);a.MutationObserver=b.MutationObserver;if(b.EventTarget){const v=b.EventTarget.prototype.addEventListener;a.addEventListener=(H,Ga,Na,qb,rb)=>{try{return v.call(H,Ga,Na,qb,rb)}catch(wc){return H.addEventListener(Ga,Na,qb,rb)}}}else{const v=b.Window.prototype.addEventListener,H=b.Node.prototype.addEventListener;a.addEventListener=(Ga,Na,qb,rb,wc)=>Ga instanceof Window?v.call(Ga,Na,qb,rb,wc):H.call(Ga,Na,qb,rb,wc)}const G=(Object.getOwnPropertyDescriptor(b.Event.prototype, "target")||{}).get;a.K=v=>G.call(v);const ca=(Object.getOwnPropertyDescriptor(b.Event.prototype,"composed")||{}).get;a.qa=v=>ca.call(v);const S=b.Event.prototype.composedPath;a.la=v=>S.call(v);const X=(Object.getOwnPropertyDescriptor(b.Element.prototype,"tagName")||{}).get;a.tagName=v=>v&&v.nodeType===1?(v=X.call(v),typeof v=="string"?v:""):"";const N=Object.getOwnPropertyDescriptor(c,"parent").get;N&&(a.M=v=>N.call(v));const ab=c.Object.prototype.toString;a.pd=v=>ab.call(v);const bb=Object.getOwnPropertyDescriptor(c.Document.prototype, "cookie");a.ra.set=v=>bb.set.call(document,v);a.ra.get=()=>bb.get.call(document);jc(a);a.createElement=v=>c.document.createElement(v);const Oa=Object.getOwnPropertyDescriptor(b.Document.prototype,"readyState");Oa&&typeof Oa.get==="function"&&(a.readyState=v=>Oa.get.call(v));if(d=c.Date.now)a.W=d;a.Array=b.Array;a.Date=b.Date;a.Set=b.Set} function kc(a){a.Va=new window.MutationObserver(function(b){if(!b.every(d=>d.removedNodes.length===0)&&(b=!1,a.isConnected(a.B)||(document.documentElement.appendChild(a.B),b=!0),a.isConnected(a.wa)||(a.B.appendChild(a.wa),b=!0),b)){hc(a);lc(a);a.ua.La("clean-iframe-re-attached");var c=a.Array.from(a.ca.values());b=a.W();a.ca.clear();for(const {gi:d,ms:e,Sa:f,bi:g}of c){c=Math.max(0,e-(b-g));try{a.setTimeout(d,c,...f)}catch(h){}}}});a.Va.observe(document.documentElement,{childList:!0});a.Va.observe(a.B, {childList:!0,subtree:!0})}function jc(a){a.Storage.setItem=a.wa.contentWindow.Storage.prototype.setItem;a.Storage.getItem=a.wa.contentWindow.Storage.prototype.getItem;a.Storage.removeItem=a.wa.contentWindow.Storage.prototype.removeItem}function mc(a){const b=a.wa.contentWindow,c=a.stringify=b.JSON.stringify,d=a.Ra=b.JSON.parse,e=b.structuredClone||(f=>f);bc(c,d)||(a.stringify=f=>c(e(f)))} function lc(a){a.wa.contentWindow!==window&&(a.setTimeout=(b,c,...d)=>{const e=()=>{a.ca.delete(f);b.apply(window,d)},f=a.contentWindow.setTimeout(e,c);a.ca.set(f,{Pi:e,gi:b,ms:c,Sa:d,bi:a.W()});return f},a.clearTimeout=b=>{a.contentWindow.clearTimeout(b);a.ca.delete(b)})} function nc(a){a.wa=document.createElement("iframe");a.wa.style.display="none";a.B.appendChild(a.wa);try{a.wa.contentWindow.scroll(0,0)}catch(b){Object.defineProperties(a.wa,{contentWindow:{value:window},contentDocument:{value:document}}),a.wa.setAttribute("data-qm-cross-origin","")}} function oc(a){try{const b=a.wa.contentWindow;if(b&&b.MutationObserver===a.MutationObserver)return b}catch(b){}a.wa&&a.wa.parentNode&&a.wa.parentNode.removeChild(a.wa);nc(a);hc(a);mc(a);a.ua.La("clean-iframe-re-attached");return a.wa.contentWindow}function ic(a,b){return window.ShadowRoot?a.pd(b).indexOf("ShadowRoot")>-1:!1} class pc{constructor(a){this.Set=this.Date=this.Array=this.MutationObserver=this.Ra=this.stringify=this.wa=this.Va=this.B=null;this.Storage={setItem:null,getItem:null,removeItem:null};this.ra={set:null,get:null};this.ua=a;this.ca=new Map;this.setTimeout=setTimeout.bind(globalThis);this.clearTimeout=clearTimeout.bind(globalThis);this.B=document.createElement("b");this.B.style.position="absolute";this.B.style.left="-1000px";this.B.tabIndex=-1;this.B.ariaHidden="true";document.documentElement.appendChild(this.B); nc(this);hc(this);kc(this);jc(this);mc(this);lc(this)}get contentWindow(){return oc(this)}get WeakMap(){return this.contentWindow.WeakMap}innerHTML(a){return a.innerHTML}innerText(a){return a.innerText}children(a){return a.children}shadowRoot(a){return a.shadowRoot}adoptedStyleSheets(a){return a.adoptedStyleSheets}ea(a,b){return a.querySelector(b)}pb(a,b){return a.querySelectorAll(b)}O(a,b,c,d){a.createNodeIterator(b,c,d)}isConnected(a){var b=a.isConnected;b===void 0&&(b=document,b=b===null?!this.contains(document.documentElement, a):this.contains(b.documentElement||b,a));return b}parentNode(a){return a.parentNode}parentElement(a){return a.parentElement}childNodes(a){return a.childNodes}textContent(a){return a.textContent}appendChild(a,b){return a.appendChild(b)}matches(a,b){return b&&b.length>0&&a.matches?a.matches(b):!1}nextSibling(a){return a.nextSibling}contains(a,b){return a.contains(b)}getRootNode(a){return a.getRootNode()}addEventListener(a,b,c,d,e){return a.addEventListener(b,c,d,e)}pd(a){return Object.prototype.toString.call(a)}K(a){return a.target}qa(a){return a.composed}la(a){return a.composedPath()}tagName(a){return a.tagName}nodeName(a){return a.nodeName}M(a){return a.parent}createElement(a){return window.document.createElement(a)}readyState(a){return a.readyState}W(){return Date.now()}} ;/* Compile predicate definitions into functions @param {*} predicate @returns @suppress {missingProperties} @suppress {missingProperties} */ const rc=a=>{const {operator:b}=a;if(b==="and")return qc(a.contents.map(rc));if(b==="or")return sc(a.contents.map(rc));if(b==="not")return tc(rc(a.contents));if(b==="contains")return uc(a);if(b==="equals")return vc(a);if(b==="starts_with")return xc(a);if(b==="ends_with")return yc(a);if(b==="regex")return zc(a);if(b==="default")return Ac();throw Error(`Unrecognized operator "${b}"`);},qc=a=>b=>a.every(c=>c(b)),sc=a=>b=>a.some(c=>c(b)),tc=a=>b=>!a(b),uc=a=>b=>b[a.facet].includes(a.value),vc=a=>b=>b[a.facet]=== a.value,xc=a=>b=>b[a.facet].startsWith(a.value),yc=a=>b=>b[a.facet].endsWith(a.value),zc=a=>{const b=new RegExp(a.value);return c=>b.test(c[a.facet])},Ac=()=>()=>!0;const Bc=a=>a[a.length-1],Cc=a=>"value"in a?{pred:rc(a.pred),value:a.value}:{pred:rc(a.pred),rules:a.rules.map(Cc)},Dc=(a,b)=>"value"in a?a.value:a.rules.reduce((c,d)=>d.pred(b)?c.concat(d.value):c,[]);function Ec(a){var b={url:window.location.href};const c={};for(const d in a.B){const e=a.B[d].find(f=>f.pred(b))||Bc(a.B[d]);c[d]=Dc(e,b)}return c} class Fc{constructor(a,b,c,d,e,f,g="",h){this.K=a;this.M=b;this.ea=c;this.aa=d;this.O=e;this.ca=f;this.sub=g||"";this.G=h;this.fa=null;this.config={};b={};for(const k in a)a=k,b[a]=this.K[a].map(Cc);this.B=b}sc(){this.config=this.O({...this.M,...Ec(this),...this.ea},this.sub);this.ca(this.config,this.aa,this.fa,this.G)}};function Gc(a){a.B=Hc(a).then(b=>{b.Wf?a.Z.yb+=b.od:L(a.ba,"clock-sync-failed",{reason:b.error},"warn")}).catch(b=>{L(a.ba,"clock-sync-error",{error:b.message},"error")}).finally(()=>{})} async function Hc(a){try{const b=wb(a.D.config,a.sub);if(!b)return Ic("no-report-url","No reportURL configured");let c;try{c=(new URL("/horizon/d",b)).href}catch(e){return Ic("invalid-report-url",`Cannot parse reportURL: ${b}`)}const d=await Jc(a,c);d.Wf&&(a.od=d.od,a.roundTripTime=d.roundTripTime);return d}catch(b){return Ic("unexpected-error",b.message)}}function Ic(a,b){return{Wf:!1,od:0,roundTripTime:0,error:`${a}: ${b}`}} async function Jc(a,b){const c=new AbortController,d=setTimeout(()=>c.abort(),1E3);try{const e=a.Z.Ta.contentWindow,f=e.fetch,g=e.performance,h=g.now(),k=await f(b,{method:"HEAD",signal:c.signal,credentials:"omit",cache:"no-store"}),l=g.now();clearTimeout(d);if(!k.ok)return Ic("http-error",`HTTP ${k.status}`);const m=k.headers.get("Date");if(!m)return Ic("no-date-header","Missing Date header");const n=(new Date(m)).getTime();return isNaN(n)?Ic("invalid-date",`Invalid Date: ${m}`):{Wf:!0,od:n-(g.timeOrigin+ (h+l)/2),roundTripTime:l-h}}catch(e){return clearTimeout(d),e.name==="AbortError"?Ic("timeout","Timeout after 1000ms"):e.name==="TypeError"&&e.message.includes("fetch")?Ic("network-error",e.message):e.message&&e.message.toLowerCase().includes("cors")?Ic("cors-error",e.message):Ic("fetch-error",e.message)}}class Kc{constructor(a,b,c,d){this.Z=a;this.D=b;this.ba=c;this.sub=d;this.roundTripTime=this.od=0;this.B=Promise.resolve();Gc(this)}};function Lc(a){const b=window.performance,c=b&&typeof b.now==="function",d=b&&typeof b.timeOrigin==="number";a.yb=d?b.timeOrigin:0;a.W=c&&d?()=>Math.floor(a.yb+b.now()):a.Ta.W}function Mc(a,b,c,d){a.B=new Kc(a,b,c,d)}function Nc(a){return a.B?a.B.B:Promise.resolve()}class Oc{constructor(a){this.Ta=a;this.W=Date.now;this.yb=0;this.B=null}};function Pc(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null);a.timeout=setTimeout(()=>{a.B.forEach((b,c)=>{Qc(a,c)});Rc(a);Pc(a)},1E3)}function Sc(a,b){a.J.D.aa.Be&&b&&!a.B.has(b)&&(a.B.set(b,{tb:new window.Set,gb:null}),a.timeout||Pc(a))} function Qc(a,b){Tc(a,b);try{const c=a.J.g.Z.W(),d=a.B.get(b);d.tb.forEach(e=>{const f=Uc(a.J.$,e);let g;typeof f.Ce=="undefined"&&(f.Ce=c);const h=(c-f.Ce)/1E3;a.J.g.G.isConnected(e)&&a.J.g.ia.matchesSelector(e,a.J.D.aa.Be)?!f.Ae&&h>=a.J.D.config.spinnerMaxSeconds&&(g=`${Vc(a.J,e,0,0)}: Load exceeded ${a.J.D.config.spinnerMaxSeconds} seconds`,f.Ae=!0,delete f.Ce,d.tb.delete(e)):(f.Ae||(h>=a.J.D.config.spinnerMaxSeconds?(g=`${Vc(a.J,e,0,0)}: Load exceeded ${a.J.D.config.spinnerMaxSeconds} seconds`, f.Ae=!0):h>=a.J.D.config.spinnerMinimumThreshold&&(g=`${Vc(a.J,e,0,0)}: ${B(h,0)} spin seconds`,f.Ae=!0)),delete f.Ce,d.tb.delete(e));g&&Wc(a.J,-22,g)})}catch(c){}}function Xc(a,b){const c=a.B.get(b);c&&(a.K(c),c.gb=setTimeout(()=>{Qc(a,b)},300))}function Yc(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null);a.B.forEach(a.K);a.B.clear()}function Rc(a){const b=[];a.B.forEach((c,d)=>{a.J.g.G.isConnected(d)||b.push(d)});b.forEach(c=>{a.B.delete(c)})} function Tc(a,b){const c=a.B.get(b);c&&a.J.g.ia.querySelectorAll(b,a.J.D.aa.Be).forEach(d=>{c.tb.add(d)})}class Zc{constructor(a){this.J=a;this.B=new window.Map;this.timeout=null}K(a){a.gb&&(clearTimeout(a.gb),a.gb=null)}};class $c{constructor(a,b){this.L=b;this.B=a}transform(a,b){if(!a.hasAttribute(b))return null;const c=a.getAttribute(b),d=this.B.find(({Od:e,Fa:f})=>e===b&&this.L.g.ia.matchesSelector(a,f));return d?{name:d.dh||b,value:c.replace(d.rb,d.ue)}:{name:b,value:c}}};const ad=/[^\s]/g,O=a=>typeof a!=="string"?a:a?a.replace(ad,"*"):"";async function bd(a,b,c){var d=b.src||(b.srcset?b.srcset.split(", ")[0]:"");try{var e=Ta(d)}catch(h){return}d=Ua(a.J.D.aa.ac,a.J.D.aa.fc,e).slice(-a.J.Ni);let f=null;e={};if(!a.J.Za(b)){const h=new $c(a.J.D.aa.Ab,a.J);var g=["id","title","alt"];for(const k of g){if(!b[k])continue;if(cd(a.J,b,k))continue;if(g=h.transform(b,k))e[g.name]=g.value}Object.keys(e).length>0&&(b=a.J.g.G.stringify(e,cc),f={hash:await Ub(b),value:e})}P(a.J.R,{id:c,ja:2,flags:0,ka:a.J.g.Z.W()},d,f)} function dd(a,b){if(b.complete&&b.naturalHeight===0){const c=b.loading==="lazy",d=a.J.ta.getEntriesByName(b.src).length>0;c&&!d||bd(a,b,-62)}else a.J.ta.getEntriesByName(b.src).forEach(c=>{c.duration>a.J.D.config.slowLoadingImageThreshold&&bd(a,b,-63)})}class ed{constructor(a){this.J=a;this.Ec=this.Ec.bind(this);this.B=this.B.bind(this)}B(a){bd(this,a.target,-62)}Ec(a){dd(this,a.target)}};const fd=[/^(query|mutation)\s+?([\w\d]+)/,/^(query|mutation).*?{\s*?([\w\d]+)/,/^(?!query|mutation)\{([\w\d]+)[\s{(]+/];function gd(a,b){return Object.keys(b).find(c=>a.has(c))}function hd({pi:a,qe:b}){return[a,b].filter(c=>c).join("/")}function id(a){if(typeof a==="string")try{return JSON.parse(a)}catch(b){}else if(typeof a==="object")return a} function jd(a,[b,c]){if(a=id(a))if(b=gd(b,a))for(b=a[b],Array.isArray(b)||(b=[b]),a=0;ab.href.match(e.path)))&&a.cache.set(c,d);return d} function od(a,b,c,d){if(b&&b.href&&(a=nd(a,b)))return d=a.parse(b.href,d,c),c=d.path,d=d.status,a={},d&&(a.status=d),c&&(a.url=`${b.origin}${b.pathname}${b.pathname.endsWith("/")?"":"/"}${c}${b.search}`),a}class pd{constructor(){this.B=[];this.cache=new window.Map}};let qd;const rd=String.fromCharCode(115,104,111,112,105,102,121),sd=String.fromCharCode(113,109,45)+rd,td=sd+String.fromCharCode(45,99,104,101,99,107,111,117,116);window.addEventListener(sd,()=>{window!==window.top&&(ud(),qd=document.body.appendChild(document.createElement(td)))},{once:!0}); window.addEventListener(sd,a=>{if(window!==window.top){var {name:b,context:c,data:d}=a.detail;switch(b){case "page_viewed":document.title=c.document.title;qd.setAttribute("title",c.document.title);history.pushState("","",c.window.location.pathname);qd.removeAttribute("input-id");break;case "input_focused":case "input_changed":qd.setAttribute("input-id",d.element.id)}}}); function ud(){const a=new Worker(URL.createObjectURL(new Blob(["onmessage=e=>setTimeout(p=>p.postMessage(null),e.data,e.ports[0])"])));setTimeout=(b,c,...d)=>{const e=new MessageChannel;e.port1.onmessage=()=>{b instanceof Function&&b(...d)};a.postMessage(0|c,[e.port2]);return 0}} class vd{constructor(a){var b=window[String.fromCharCode(81,117,97,110,116,117,109,77,101,116,114,105,99,83,104,111,112,105,102,121,65,112,105)];this.B=a;if(this.oa=b){if(!/checkout/.test(this.oa.init.context.window.location.pathname))return this.B.stop();ud();this.B.start();setTimeout(()=>this.start(),50)}}start(){let a=document.createElement(td);this.oa.analytics.subscribe("page_viewed",b=>{document.title=b.context.document.title;a.setAttribute("title",b.context.document.title);a.removeAttribute("input-id"); history.pushState("","",b.context.window.location.pathname)});this.oa.analytics.subscribe("input_focused",b=>{a.setAttribute("input-id",b.data.element.id)});this.oa.analytics.subscribe("input_changed",b=>{a.setAttribute("input-id",b.data.element.id)});this.oa.analytics.subscribe("all_events",b=>{K(this.B,{t:"shp",I:b.name});wd(this.B.oa,rd,{name:b.name,data:b.data})});document.body.appendChild(a)}};const xd=a=>a.reduce((b,c)=>b+String.fromCharCode(c),"");const yd={mode:null,dataLayerPaths:[],captureWebStorage:[],publishInterval:3500,sendInterval:1E3,sendRetries:10,proxyIngest:!1,ingestParamsCallback:"",reportURL:"",hashResourceURL:"",ingestBaseURL:xd([104,116,116,112,115,58,47,47,105,110,103,101,115,116,46,113,117,97,110,116,117,109,109,101,116,114,105,99,46,99,111,109]),hashUploadPercent:1,resourceUploadDelay:2E3,urlMonitorBlacklist:[],ingestURLProvider:null,sessionTimeoutMinutes:30,maxSessionDuration:0,cookieDomain:null,sessionCookieName:"QuantumMetricSessionID", sessionVar:null,userCookieName:"QuantumMetricUserID",sessionStoreNamespace:"QM_S",userStoreNamespace:"QM_U",sessionPersistenceMediums:["cookie","localStorage"],userPersistenceMediums:["cookie","localStorage"],publicKeyString:null,dataScrubRE:[],dataScrubWhiteList:["[data-qm-allow]"],dataScrubBlackList:["*"],scrubDocumentTitlePatterns:[],dataEncryptWhiteList:["[data-qm-allow]"],encryptScrubList:["[data-qm-encrypt]"],maskSensitiveWindowDialogs:[],maskSensitiveJSErrors:[],encryptSensitiveWindowDialogs:[], excludeDOMList:[],apiDefinitions:[],xhrHookWhiteListDetails:[],xhrHookBlackListDetails:[],xhrPerformanceWhitelistDetails:[],xhrPerformanceSlow:3E3,encryptXHR:!0,checkBlankPages:!0,pbpThreshold:3E3,xhrHookWhiteList:[],xhrHookBlackList:[],xhrErrorBlacklist:[{p:"appdynamics",f:"i"},{p:"aws-origin",f:"i"},{p:"bam",f:"i"},{p:"bam-cell",f:"i"},{p:"cdnbasket",f:"i"},{p:"cdnwidget",f:"i"},{p:"chtbl",f:"i"},{p:"clarity",f:"i"},{p:"clearbit",f:"i"},{p:"demdex",f:"i"},{p:"doubleclick",f:"i"},{p:"facebook",f:"i"}, {p:"google",f:"i"},{p:"google-analytics",f:"i"},{p:"hotjar",f:"i"},{p:"instagram",f:"i"},{p:"iperceptions",f:"i"},{p:"litix",f:"i"},{p:"omtrdc",f:"i"},{p:"pinterest",f:"i"},{p:"snowplowanalytics",f:"i"},{p:"tealium",f:"i"},{p:"tvpixel",f:"i"},{p:"yimg",f:"i"},{p:"linkedin",f:"i"}],dataScrubXHRRegExes:[{p:'"firstName":"?([^,"}]+)"?,?',f:"i"},{p:'"lastName":"?([^,"}]+)"?,?',f:"i"},{p:'"cvv_code":"?([^,"}]+)"?,?',f:"i"},{p:'"cvvCode":"?([^,"}]+)"?,?',f:"i"},{p:'"expiration_date":"?([^,"}]+)"?,?',f:"i"}, {p:'"expirationDate":"?([^,"}]+)"?,?',f:"i"},{p:'"account_no":"?([^,"}]+)"?,?',f:"i"},{p:'"routingNumber":"?([^,"}]+)"?,?',f:"i"},{p:'"date_of_birth":"?([^,"}]+)"?,?',f:"i"},{p:'"dateOfBirth":"?([^,"}]+)"?,?',f:"i"},{p:'"countryOfBirth":"?([^,"}]+)"?,?',f:"i"},{p:'"new_password":"?([^,"}]+)"?,?',f:"i"},{p:'"gender":"?([^,"}]+)"?,?',f:"i"},{p:'"accountNo":"?([^,"}]+)"?,?',f:"i"},{p:'"accountNumber":"?([^,"}]+)"?,?',f:"i"},{p:'"confirm_password":"?([^,"}]+)"?,?',f:"i"},{p:'"confirmPassword":"?([^,"}]+)"?,?', f:"i"},{p:'"addr_Line1":"?([^,"}]+)"?,?',f:"i"},{p:'"addr_Line2":"?([^,"}]+)"?,?',f:"i"},{p:'"addrLine1":"?([^,"}]+)"?,?',f:"i"},{p:'"addrLine2":"?([^,"}]+)"?,?',f:"i"},{p:'"password":"?([^,"}]+)"?,?',f:"i"},{p:'"dob":"?([^,"}]+)"?,?',f:"i"},{p:'"newPassword":"?([^,"}]+)"?,?',f:"i"},{p:'"loginToken":"?([^,"}]+)"?,?',f:"i"},{p:'"card_number":"?([^,"}]+)"?,?,?',f:"i"},{p:'"address":"?([^,"}]+)"?,?',f:"i"},{p:'"name":"?([^,"}]+)"?,?',f:"i"},{p:'"nationality":"?([^,"}]+)"?,?',f:"i"},{p:'"routing_number":"?([^,"}]+)"?,?', f:"i"},{p:'"account_number":"?([^,"}]+)"?,?',f:"i"},{p:'"givenName":"?([^,"}]+)"?,?',f:"i"},{p:'"familyName":"?([^,"}]+)"?,?',f:"i"}],visibleURL:xd([104,116,116,112,115,58,47,47,101,120,116,101,114,110,97,108,46,113,117,97,110,116,117,109,109,101,116,114,105,99,46,99,111,109,47,118,105,115,105,98,108,101,47,108,97,116,101,115,116,47,98,111,111,116,115,116,114,97,112,46,98,117,110,100,108,101,46,106,115]),visibleQueryParamName:"qm-visible",surveyPreview:{url:xd([104,116,116,112,115,58,47,47,101,120, 116,101,114,110,97,108,46,113,117,97,110,116,117,109,109,101,116,114,105,99,46,99,111,109,47,115,117,114,118,101,121,45,112,114,101,118,105,101,119,47,108,97,116,101,115,116,47,115,117,114,118,101,121,45,112,114,101,118,105,101,119,46,98,117,110,100,108,101,46,106,115]),queryParamName:"qm_action",queryParamValue:"survey_preview"},bookmarkToolbarURL:xd([104,116,116,112,115,58,47,47,101,120,116,101,114,110,97,108,46,113,117,97,110,116,117,109,109,101,116,114,105,99,46,99,111,109,47,105,110,116,101, 114,97,99,116,105,111,110,115,45,114,101,99,111,114,100,101,114,47,108,97,116,101,115,116,47,98,117,110,100,108,101,46,106,115]),bookmarkToolbarQueryParamName:"qm-bookmark-toolbar-id",bookmarkServiceURL:xd([104,116,116,112,115,58,47,47,114,108,46,113,117,97,110,116,117,109,109,101,116,114,105,99,46,99,111,109,47,117,47,114,101,112,108,97,121]),excludeRageRE:[{p:"\\bzoom\\b",f:"i"},{p:"\\btoggle\\b",f:"i"},{p:"\\bprev\\b",f:"i"},{p:"\\bnext\\b",f:"i"},{p:"\\bforward\\b",f:"i"},{p:"\\bbackward\\b", f:"i"},{p:"\\bqty\\b",f:"i"},{p:"\\bdown\\b",f:"i"},{p:"\\bup\\b",f:"i"},{p:"\\bright\\b",f:"i"},{p:"\\bleft\\b",f:"i"},{p:"\\barrow\\b",f:"i"},{p:"\\bplus\\b",f:"i"},{p:"\\bminus\\b",f:"i"},{p:"\\bincrease\\b",f:"i"},{p:"\\bdecrease\\b",f:"i"},{p:"\\bcarousel\\b",f:"i"},{p:"\\bquantity\\b",f:"i"},{p:"\\bchevron\\b",f:"i"}],excludeRageCSS:[],rageScrollWheelWindow:2500,rageScrollWheelDirChanges:3,rageScrollWheelMinDistance:50,rageScrollWheelIgnoreDelay:5E3,rageScrollTouchWindow:2500,rageScrollTouchDirChanges:3, rageScrollTouchMinDistance:150,rageScrollTouchIgnoreDelay:5E3,rageScrollTouchJitter:3,replaceURLRegExes:[],enableWorkerCompression:!0,enableCompression:!0,urlTransforms:[],monitorAllHashChanges:!1,maskInputs:!1,abnSegmentCookie:"",ignoreChangesList:[],blacklistedURLs:[],whitelistedURLs:[],disableFormSubmitFields:!1,scrubInputAttributes:["defaultValue","placeholder"],forceDeferFetchAborts:!1,monitorXHRSetCookies:!1,maxXHRDataLength:20480,excludeXHRHeaderRegEx:[{p:"Authorization",f:"i"}],percentSampling:100, enabledCookie:"QuantumMetricEnabled",logReqCookiesForXHR:!1,spinnerMaxSeconds:6,spinnerMinimumThreshold:3,spinnerSelectorList:["[class*=spinner]:not([class*=hide]):not([class*=hidden]):not([class*=inactive]):not([class*=disabled])","[class*=loading]:not([class*=hide]):not([class*=hidden]):not([class*=inactive]):not([class*=disabled])","[class*=loader]:not([class*=hide]):not([class*=hidden]):not([class*=inactive]):not([class*=disabled])"],stripHTMLComments:!1,maxNumOOBEventsPerHit:5E3,targetCurrency:"USD", startOffset:0,startImmediatePathPatterns:[],allowClearCookies:!1,captureCookiesReplay:!0,waitForSessionIdPathPatterns:[],startWithoutParentPathPatterns:[],maxIframeSyncRetries:10,waitForParentMaxRetries:20,waitForParentRetryDelay:250,maxWaitForSessionIdRetries:2E4,queryParamForSessionId:"",queryParamForUserId:"",nestedStitchingQueryParams:[],logResourcePercent:0,autoDetectSDK:!1,customWebviewUserAgentPatterns:[],maxResourcesPerHit:500,allowedResourceTypes:"css img script link iframe xmlhttprequest fetch".split(" "), maxStoredEventLength:255,hookPrompt:!0,blockFrequentReloads:[],domChangedThrottleDuration:100,spaTransitionStartMarkerName:"QuantumMetricTransitionStart",spaTransitionStopMarkerName:"QuantumMetricTransitionStop",spaLocationChangedTimeout:1E3,ignoreAttributes:"data-city data-postal-code data-email data-accountnumber data-phone data-address data-address1 data-last-name data-first-name data-user-firstname data-user-lastname data-user-email data-addressone data-addresstwo data-postalcode data-countrycode taxidnumber accountnumber lastname middlename firstname address address1 address2 city statecode zip ssn taxId consumerID birthdate personalemail businessemail idnumber email user-info password data-user-phonenumber data-user-birthdate account-number account-alias".split(" "), transformAttributesForNodesList:[],webVitalsSnapshotBuffer:1E3,resourcePathBlacklist:[{p:"googleads.g.doubleclick.net",f:"i"}],sampleReplay:0,replayEnabled:!0,hookFetch:!0,sameSiteFlag:"None",disableErrorHooking:!1,xhrEncryptWhiteListDetails:[],xhrEncryptBlackListDetails:[],encryptNodeAttributes:[],syncEndpointsWithSDK:[],maskSensitiveQueryParams:"user userid user-id username alias clientid accountnumber invoicenumber id accountid customer_id customerid authcode authtoken bankclearingcode bankcountry ordertoken token passcode password vin confirmationno confirmation-number confirmationnumber confirmation dateofbirth email email_address emailaddress emailid loginemail loginid login_hint loginhint title name fname sname gname first_name firstname last_name lastname surname location address address1 address2 orderemail password phone phonenumber phone_number po postcode referrerid routingnumber state transactionid transid txtpassword txtuserid utm_email ssn".split(" "), forceElementCSSUpload:["[data-fela-type]","[data-emotion]"],forceElementCSSInline:[],ignoreElementCSSSerialization:[],reportFailedImages:!0,slowLoadingImageThreshold:2500,useFallbackSDKSync:!1,imageTrackingIgnoreList:'img[alt*="tracking"] img[alt*="pixel"] img[alt*="beacon"] img[alt*="analytics"] img[alt*="spy"] img[alt*="tracker"] img[alt*="conversion"] img[alt*="1x1"] img[src*="utm_"] img[src*="google-analytics.com/"] img[src*="doubleclick.net/"] img[src*="facebook.com/tr/"] img[height="1"][width="1"] img[height="0"][width="0"] img[src=""] img[src*="blank.gif"]'.split(" "), waitForNativeCapture:!0,elementVeinAttributes:"aria-label data-testid alt title data-id id name class data-component-id data-aura-class aria-describedby data-key slot".split(" "),temp:{cleanAPIUrls:!0,isPivot:!1},maxMDELength:20480,maxSDKWaitTime:6E3,clickTextMapping:[],excludeLegacyHttp:[{p:"^",f:""}],sdkCommTimeout:3E3,sdkCommRetryCount:5,sdkCommRetryDelay:500,zones:[],console:{error:[{re:{p:".*",f:""}}]},flutterViews:[{root:"flutter-view",attr:"flt-view-id",render:"flt-glass-pane S# canvas"}]}, zd={};function Ad(a){if(!a.M){const b=new URLSearchParams(window.location.search),c=a.B.fa.get("isRecording",!1);a.K=b.get(a.B.D.config.bookmarkToolbarQueryParamName)||c;a.K&&(zd.hashUploadPercent=100,zd.percentSampling=100,zd.sampleReplay=100,zd.publishInterval=500)}}function Bd(a,b){const c=b.action;if(c)switch(c){case "recorder-cleanup":a.M=!0;Cd(a.B);setTimeout(()=>{window.close()},350);break;default:console.warn("QM: Unknown recorder action")}else console.warn("QM: Missing recorder action:",b)} class Dd{constructor(a){this.B=a;this.K=this.M=!1}start(){if(this.K){var a=document.createElement(this.B.xe);a.src=this.B.D.config.bookmarkToolbarURL;a.crossOrigin="anonymous";document.head.appendChild(a);this.B.fa.set("isRecording",!0);this.B.oa.getSessionVar("sst",null)||this.B.oa.setSessionVar("sst",this.B.g.Z.W())}}};const Ed=["log","warn","error","info","debug"];function Fd(a){const b=[],c={ab:5120};a=a.map(d=>Gd(d,new Set,c,b,null));for(let d=0;d0?Hd(e.Xh,e.source,e.Wh,c,b,e.root):e.root.na.truncated=!0}return a}function Gd(a,b,c,d,e){if(b.has(a))return new Id("[Circular Reference]");const f=Jd.handlers.find(g=>g.mb(a))||Kd;if(f===Ld||f===Md){if(f.BASE_LENGTH>c.ab)return Nd(e);c.ab-=f.BASE_LENGTH;c=new f;d.push({Xh:c,source:a,Wh:b,root:e||c});return c}b=new f(a);d=b.nb();if(d>c.ab)return Nd(e);c.ab-=d;return b} function Hd(a,b,c,d,e,f){c=(new Set(c)).add(b);if(Array.isArray(b)){var g=a.na.v;for(var h=0;hd.ab){f.na.truncated=!0;break}d.ab-=a;try{h=b[g]}catch(l){k[g]=new Id("[Unserializable]");continue}a=Gd(h,c,d,e,f);a!==null&&(k[g]=a)}} function Nd(a){if(a===null)return new Id("[Truncated]");a.na.truncated=!0;return null}function Od(a){Jd.handlers.find(b=>b===a)||Jd.handlers.push(a)}class Jd{}Jd.handlers=[];class Pd{constructor(){this.na={t:"",v:void 0}}static mb(){return!1}bb(){return this.na}ph(){return this.bb()}Gb(a){return String(this.na.v).search(a)!==-1}nb(){return Pd.BASE_LENGTH+String(this.na.v).length}}Pd.BASE_LENGTH=26; class Id extends Pd{static mb(a){return typeof a==="string"}constructor(a){super();this.na={t:"string",v:a.length>500?a.substring(0,500)+"...":a}}Gb(a,b){let c=!1;a=this.na.v.replaceAll(a,d=>{c=!0;return b||d});c&&b&&(this.na.v=a);return c}nb(){return Id.BASE_LENGTH+this.na.v.length}}Id.BASE_LENGTH=21;class Qd extends Pd{static mb(a){return typeof a==="number"}constructor(a){super();this.na={t:"number",v:Number.isFinite(a)?a:String(a)}}nb(){return Qd.BASE_LENGTH+String(this.na.v).length}} Qd.BASE_LENGTH=20;class Rd extends Pd{static mb(a){return typeof a==="boolean"}constructor(a){super();this.na={t:"boolean",v:a}}nb(){return Rd.BASE_LENGTH}}Rd.BASE_LENGTH=25; class Sd extends Pd{static mb(a){return Object.prototype.toString.call(a)==="[object Error]"}constructor(a){super();var b=a.stack||"";b=b.length>500?`${b.substring(0,500)} ...`:b;const c={};a.message&&(c.m=a.message);c.s=b;this.na={t:"error",v:c}}Gb(a,b){const c=this.na.v.m;if(!c)return!1;let d=!1;a=c.replaceAll(a,e=>{d=!0;return b||e});d&&b&&(this.na.v.m=a);return d}nb(){return Sd.BASE_LENGTH+(this.na.v.m?this.na.v.m.length:0)+Math.min(this.na.v.s.length,500)}ph(){const a={};this.na.v.m&&(a.m=this.na.v.m); return{t:this.na.t,v:a}}}Sd.BASE_LENGTH=33;class Td extends Pd{static mb(a){return typeof a==="bigint"}constructor(a){super();a=a.toString();this.na={t:"bigint",v:a.length>500?a.substring(0,500)+"...":a}}nb(){return Td.BASE_LENGTH+this.na.v.length}}Td.BASE_LENGTH=21;class Ud extends Pd{static mb(a){return a===null||a===void 0}constructor(a){super();this.na={t:"nullish",v:a===null?"null":"undefined"}}}Ud.BASE_LENGTH=22; class Kd extends Pd{static mb(){return!0}constructor(a){super();this.na={t:"unsupported",v:String(a)}}} class Md extends Pd{static mb(a){return!!a&&typeof a==="object"}constructor(){super();this.na={t:"object",v:{}};this.B=null}bb(){if(this.B)return this.B;const a=this.na.v,b={t:"object",v:{}};this.na.truncated&&(b.truncated=!0);for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b.v[c]=a[c].bb());return this.B=b}Gb(a,b){const c=this.na.v;let d=!1;for(const e in c)Object.prototype.hasOwnProperty.call(c,e)&&c[e].Gb(a,b)&&(d=!0);return d}nb(){const a=this.na.v;let b=Md.BASE_LENGTH;for(const c in a)Object.prototype.hasOwnProperty.call(a, c)&&(b+=c.length+4+a[c].nb());return b}}Md.BASE_LENGTH=21; class Ld extends Pd{static mb(a){return Array.isArray(a)}constructor(){super();this.na={t:"array",v:[]};this.B=null}bb(){if(this.B)return this.B;const a=this.na.v,b={t:"array",v:[]};this.na.truncated&&(b.truncated=!0);for(let c=0;c{const d=Aa(b,c);if(d&&d.configurable){var e=d.value;Object.defineProperty(b,c,{value:(...f)=>{const g=e.apply(b,f);try{if(!a.M&&a.ca.has(c)){a.M=!0;try{Wd(a,c,f)}finally{a.M=!1}}}catch(h){a.xa("CONSOLE_HOOK_ERROR",h.message)}return g},writable:d.writable,enumerable:d.enumerable,configurable:d.configurable})}})}} function Wd(a,b,c){if(!(a.B.length>=5E3)){var d=Math.min(c.length,5);if(d!==0){var e=[];for(let f=0;fXd(a),0))}}}function Xd(a){const b=a.G.W();let c=0;for(const d of a.B)if(a.Xd(d.method,d.Sa),c++,a.G.W()-b>=30)break;a.B.splice(0,c);a.B.length>0?a.K=a.G.setTimeout(()=>Xd(a),0):(a.G.clearTimeout(a.K),a.K=null)} class Yd{constructor(a){this.G=a.G;this.xa=a.xa;this.Xd=a.Xd;this.B=[];this.K=null;this.M=!1;this.ca=new Set;this.ea=!1;Vd(this)}flush(){this.K!==null&&(this.G.clearTimeout(this.K),this.K=null);if(this.B.length!==0){var a=this.G.W(),b=0;for(const c of this.B)if(this.Xd(c.method,c.Sa),b++,this.G.W()-a>=90)break;this.B.length=0}}};function Zd(a){let b=new Uint8Array(a.length*2);for(let c=0;c>8&255;b[e+1]=d&255}return b}function $d(a){a=new Uint8Array(a);let b="";for(let c=0;c<=a.length;c+=65E3)b+=String.fromCharCode.apply(null,a.slice(c,c+65E3));return btoa(b)}function ae(a){a=atob(a).split("").map(b=>b.charCodeAt(0));return new Uint8Array(a)}function be(a){return a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")};class ce{constructor(a){this.M=a;this.K=this.B=null;this.iv=new Uint8Array(16);this.importKey()}async importKey(){if(this.M&&!this.K){be($d(this.M));var a=this;this.B=new Promise(b=>{try{de().importKey("raw",this.M,na,!1,["encrypt"]).then(c=>{a.K=c;b()}).catch(()=>{b()})}catch(c){b()}})}}async encrypt(a){!this.K&&this.B&&await this.B;try{!this.K&&this.B&&(await this.B,this.B=null);if(this.K){const b=Zd(a);return await de().encrypt({name:na,iv:this.iv},this.K,b)}return new ArrayBuffer(0)}catch(b){return new ArrayBuffer(0)}}} ;function de(){return window.crypto&&window.crypto.subtle}function Ub(a){a=(new TextEncoder).encode(a);return crypto.subtle.digest("SHA-256",a).then(b=>btoa(String.fromCharCode.apply(null,new Uint8Array(b,0,8))))} async function ee(a){if(window.crypto&&window.crypto.subtle){a.supports=!0;if(!a.B||a.B.length!=32){a.B=new Uint8Array(32);crypto.getRandomValues(a.B);try{var b=JSON.parse(atob(a.K)).map(ae)}catch(c){}a.ca=await (new fe(b)).encrypt(a.B);a.le=await ge(a,a.K)}a.M=new ce(a.B);a.ea&&(a.O(),a.ea=!1)}}async function ge(a,b){return b&&a.supports?(a=await crypto.subtle.digest("SHA-256",Zd(b.toString().toLowerCase())),$d(a)):""} async function he(a,b){a=await a.encrypt(b).catch(()=>"*");return a==="*"?"":a}function ie(a){return a.ca&&a.K?"v2:"+$d(a.ca):""}class je{constructor(a,b,c){a&&(this.J=c,this.K=a,this.M=this.ca=this.B=null,this.O=b,this.le="",this.ea=!0,this.supports=!1,this.qa=ee(this))}async encrypt(a){if(!a||a.trim().length==0)return"";if(!this.K||!this.supports)return"*";try{if(this.M||await this.qa,a&&typeof a=="string"&&this.M){try{var b=await this.M.encrypt(a)}catch(c){}return $d(b)}}catch(c){}return"*"}};class fe{constructor(a){this.M=a;this.K=this.B=null;this.importKey()}async importKey(){try{if(this.M&&!this.K){var a={kty:"RSA",alg:pa,ext:!1,key_ops:["encrypt"],e:"AQAB",n:be($d(this.M[0]))},b=this;this.B=new Promise((c,d)=>{try{de().importKey("jwk",a,{name:oa,hash:{name:ma}},!1,["encrypt"]).then(e=>{b.K=e;c(e)}).catch(e=>{d(e)})}catch(e){d(e)}})}}catch(c){}}async encrypt(a){!this.K&&this.B&&await this.B;try{if(!this.K&&this.B&&(await this.B,this.B=null),this.K)try{return await de().encrypt({name:oa}, this.K,a)}catch(b){return new ArrayBuffer(0)}}catch(b){return new ArrayBuffer(0)}}};class ke{constructor(a,b,c){this.J=a;this.M=c;this.Ta=b;this.B=this.B.bind(this);this.K=this.K.bind(this);this.J.tf||window.addEventListener("storage",this.K);window.addEventListener("pagehide",this.B)}K(a){a.key==="QEventChannel"&&a.newValue&&this.M(this.Ta.Ra(a.newValue))}B(){try{this.Ta.Storage.removeItem.call(window.localStorage,"QEventChannel")}catch(a){}}Ve(){window.removeEventListener("storage",this.K);window.removeEventListener("pagehide",this.B)}};class le{constructor(){this.J=null}};function me(...a){for(var b={},c=0;c=this.value:a>this.value}}var Oe=0,Pe=1,Qe=2;class Re extends se{evaluate(a){return!!a}}class Se extends se{evaluate(a){return a!=null&&a.length!=0}}class Te extends se{constructor(a,b){super();this.key=b}evaluate(a){return a[this.key]!==void 0}} class Ue extends se{constructor(a,b){super();this.Fa=b}evaluate(a){try{if(!(a instanceof Element))return!1}catch(b){}return this.J.g.ia.matchesSelector(a,this.Fa)}}class Ve extends se{constructor(a,b,c){super();this.key=b;this.B=c}evaluate(a){try{var b=a[this.key];b||this.key!="value"||(b=a.innerText);b=b?b.trim().toLowerCase():b;return b===(this.B?this.B.toLowerCase():this.B)}catch(c){return a[this.key]===this.B}}}class We extends se{evaluate(a){return a!==void 0&&a!==null}};class Xe extends U{constructor(a){super();this.R=a;this.J=a.J}};class Ye extends Xe{B(){return this.R.Af}ga(){return{formSubmitted:!0}}}class Ze extends Xe{B(){return this.R.yf.filled?this.R.yf.name:null}ga(){return{form:!0}}}class $e extends Xe{constructor(a,b){super(a);this.Fa=b}B(){var a=this.R.Af;if(!a)return null;a=a.elements;for(var b=0;b=0;--c){var d=b[c];if(d.id==a)return d.value}}ga(){return this.la}}class bf extends Xe{constructor(a,b){super(a);this.O=b}B(){for(var a=this.O,b=this.R.ib,c=b.length-1;c>=0;--c){var d=b[c];if(d.id==a)return d.timeStamp}}ga(){return{eventinfo:!0,event:!0}}}class cf extends Xe{B(){return this.R.ob&&this.R.ob.s}ga(){return{eventinfo:!0}}} class df extends Xe{B(){var a=this.R.ob;if(a)return a.e+B(this.J.Fc/1E3)}ga(){return{eventinfo:!0,engagement:!0}}};class ef extends oe{constructor(a,b){super();this.R=a;this.Fa=b}B(){if(this.R.xf)return this.J.g.ia.matchesSelector(this.R.xf,this.Fa)}ga(){return{fieldFilled:!0}}};class ff extends Xe{B(){return this.R.Xg}ga(){return{clicked:!0}}};class gf extends Xe{B(){return this.R.$b}ga(){return{clicked:!0}}};class hf extends oe{constructor(a,b){super();this.R=a;this.Fa=b}B(){return!!this.R.J.g.ia.querySelector(document,this.Fa)}ga(){return{pageready:!0,dom:!0,eventinfo:!0}}};class jf extends Xe{constructor(a,b){super(a);this.Fa=b}B(){var a=this.J.g.ia.querySelector(document,this.Fa);if(a)return a.nodeName!="INPUT"&&a.nodeName!="SELECT"&&a.nodeName!="TEXTAREA"||!a.value?this.J.g.G.textContent(a):a.value}ga(){return{dom:!0,pageready:!0,eventinfo:!0,clicked:!0,formSubmitted:!0,fieldFilled:!0}}};class kf extends Xe{constructor(a,b){super(a);this.Fa=b}B(){var a=this.J.g.ia.querySelector(document,this.Fa);if(a)return a.value}ga(){return{dom:!0,pageready:!0,clicked:!0,formSubmitted:!0,eventinfo:!0}}};class lf extends oe{constructor(a,b){super();this.R=a;this.O=b}B(){return this.R.J.ra.get(this.O)}ga(){return{eventinfo:!0}}};class mf extends U{constructor(a,b){super();this.R=a;this.O=b}B(){return this.R.J.ra.get(this.O)}ga(){return{eventinfo:!0}}};const nf=async(a,b,c)=>{if(typeof c==="string")return c;a=((a.reqHeaders||"").toLowerCase().split("\r\n").find(d=>d.startsWith("content-type"))||"").slice(14);return c instanceof window.FormData||a.startsWith("multipart/form-data")?await (new Request("",{method:b,body:c})).text():c instanceof Uint8Array?c instanceof Uint8Array&&(a.startsWith("application/json")||a.startsWith("text/"))?String.fromCodePoint.apply(null,c):c:c},of=a=>a.split("\r\n").reduce((b,c)=>{if(c==="")return b;const [d,e]=c.split(/:\s*/); b[d.toLowerCase()]=e;return b},{});class pf extends U{constructor(a,b){super();this.R=a;this.O=b}B(){var a="";try{if(typeof this.O==="object"&&this.O!==null&&this.O.hasOwnProperty("fn")){const b=this.R.J,c=b.oa,d={api:c,utils:{get:E,set:Ca,JSON:{parse:b.g.G.Ra,stringify:b.g.G.stringify},getSessionVar:c.getSessionVar.bind(c),setSessionVar:c.setSessionVar.bind(c),currencyConvertFromToValue:c.currencyConvertFromToValue.bind(c)},userID:b.za,sessionID:b.ha};if(this.R.Kd){const e=this.R.Kd;let f=e.qresponse;try{f=this.R.J.g.G.Ra(f)}catch(h){}let g= e.qrequest;try{g=this.R.J.g.G.Ra(g)}catch(h){}d.http={response:f,request:g,status:e.qstatus,method:e.qmethod,url:e.qurl,duration:e.qduration};e.qreqheaders&&(d.http.requestHeaders=of(e.qreqheaders));e.qrespheaders&&(d.http.responseHeaders=of(e.qrespheaders))}this.R.Jd&&(d.lastClicked=this.R.Jd);return this.O.fn.call(d)}a=window[this.J.rg](this.O)}catch(b){console.error("QTM: JSEvent: ",b,this.O),L(this.J.ba,"JSValue:eval-error",{eventId:this.R.Ye,message:b.message,stack:b.stack?b.stack.toString().substring(0, 500):""},"error")}return a}ga(){return{pageready:!0,eventinfo:!0}}};class qf extends pf{ga(){return{pageready:!0,eventinfo:!0,dom:!0,clicked:!0,xhr:!0}}};class rf extends Xe{constructor(a,b){super(a);this.O=new RegExp(b)}B(){if(this.R.Ia)return this.O.test(this.R.Ia.responseURL)?this.R.Ia.data:void 0}ga(){return{xhr:!0}}};class sf extends Xe{constructor(a,b){super(a);this.O=new RegExp(b)}B(){if(this.R.Ia&&this.O.test(this.R.Ia.qurl))return this.R.Ia.qresponse}ga(){return{xhr:!0}}};function tf(a){const b={};return a&&typeof a==="string"?a.split("\r\n").slice(0,-1).reduce((c,d)=>{const [e,f]=d.split(": ");d=e.toLowerCase();d in c||(c[d]=[]);c[d].push(...f.split(/, */g));return c},b):b}function uf(a,b){return b&&a.name in b?a.la?b[a.name].some(c=>a.la.evaluate(c)):!0:!1} class vf extends Xe{constructor(a,b,c,d){super(a);this.O=new RegExp(b);this.name=c;this.la=d}B(){const a=this.R.Ia;if(a&&this.O.test(a.responseURL)){var b=a.Lf;if(!b){const c=a.getAllResponseHeaders();c&&(b=tf(c),a.Lf=b)}return uf(this,b)}}ga(){return{xhr:!0}}};class wf extends vf{B(){const a=this.R.Ia;if(a&&this.O.test(a.responseURL)){var b=a.Mf;if(!b){const c=a.reqHeaders;c&&(b=tf(c),a.Mf=b)}return uf(this,b)}}};const xf=/^\d+$/;class yf extends U{constructor(a,b,c){super();this.key=b;this.la=this.key.split(".");this.O=c}B(){var a=this.O.evaluate();if(a&&typeof a=="string")try{for(var b=this.la,c=0;cc.transform(b),a)}ga(){const a=this.O.reduce((b,c)=>Object.assign(b,Q(c)),{});return Object.assign(a,Q(this.value))}K(a){T(this.value,a);this.O.forEach(b=>T(b,a))}};class Df extends Bf{constructor(a,b){super();this.O=b}transform(a){typeof a!=="string"&&(a=String(a));return this.O==="u"?a.toUpperCase():this.O==="l"?a.toLowerCase():a}}class Ef extends Bf{constructor(a,b,c){super();this.rb=Xa(b.p,b.f);this.ue=c}transform(a){typeof a!=="string"&&(a=String(a));return this.rb?a.replace(this.rb,this.ue):""}}class Ff extends Bf{constructor(a){super();this.R=a}transform(a){if(typeof a==="string")try{return this.R.J.g.G.Ra(a)}catch(b){}}} class Gf extends Bf{constructor(a,...b){super();this.R=a;this.keys=b}transform(a){if(typeof a==="object"&&a!==null)return this.keys.reduce((b,c)=>{if(Array.isArray(c)){var d=c[0];c=c[1]}else d=c;d=a[d];d!==void 0&&(b[c]=d);return b},{})}}class Hf extends Bf{constructor(a,b){super();this.target=b}transform(a){if(typeof a==="object"&&a!==null){var b=this.target.evaluate();if(typeof b==="object"&&b!==null)return{...a,...b}}}ga(){return Q(this.target)}K(a){T(this.target,a)}};class If extends U{constructor(a,b,c,d){super();this.object=b;this.path=c;this.la=c.split("/").slice(1).map(ec);this.O=d}B(){var a=this.object.evaluate();if(a===void 0)return!1;a=this.path===""?a:E(a,this.la,M);return a==M?!1:this.O?this.O.evaluate(a):!0}ga(){return Q(this.object)}K(a){T(this.object,a)}};class Jf extends U{B(){return window}ga(){return{eventinfo:!0,pageready:!0}}};class Kf extends If{B(){var a=this.object.evaluate();if(a!==void 0){a=this.path===""?a:E(a,this.la,M);if(!this.O)return a===M?void 0:a;if(a!=M&&this.O.evaluate(a))return a}}};class Lf extends U{constructor(a,b,c,d){super();this.O=b;this.path=c;this.ua=c.split("/").slice(1).map(ec);this.la=d}B(){const a=this.O.evaluate();if(a===void 0)return!1;const b=this.la?c=>this.la.evaluate(c):()=>!0;return this.path===""?b(a):fc(a,this.ua,b)!==M}ga(){return Q(this.O)}K(a){T(this.O,a)}};class Mf extends U{constructor(a,b,c,d){super();this.O=b;this.path=c;this.ua=c.split("/").slice(1).map(ec);this.la=d}B(){var a=this.O.evaluate();if(a===void 0)return!1;const b=this.la?c=>this.la.evaluate(c):()=>!0;if(this.path===""&&b(a))return a;a=fc(a,this.ua,b);return a!==M?a:void 0}ga(){return Q(this.O)}K(a){T(this.O,a)}};class Nf extends vf{constructor(a,b,c){super(a,b,c,null)}B(){const a=this.R.Ia;if(a&&this.O.test(a.responseURL)){var b=a.Lf;if(!b){const c=a.getAllResponseHeaders();c&&(b=tf(c),a.Lf=b)}return b[this.name]}}};class Of extends wf{constructor(a,b,c){super(a,b,c,null)}B(){const a=this.R.Ia;if(a&&this.O.test(a.responseURL)){var b=a.Mf;if(!b){const c=a.reqHeaders;c&&(b=tf(c),a.Mf=b)}return b[this.name]}}};class Pf extends U{constructor(a,b,c,...d){super();this.ua=b;this.la=Math.max(Math.min(c,d.length-1),0);this.O=d}B(){var a=this.O.map(e=>e.evaluate());let b=!1,c="",d=null;this.ua===Qf&&a.every(e=>e.Ka)&&(b=!0,c=a[this.la].value,d=a[this.la].Wa);this.ua===Rf&&a.some(e=>e.Ka)&&(a=a.find(e=>e.Ka)||{Ka:!1,value:""},b=!0,c=a.value,d=a.Wa);b?this.O.forEach(e=>{e.M()}):this.O.forEach(e=>{e.ca()});return{Ka:b,value:c,Wa:d}}ga(){return this.O.reduce((a,b)=>({...Q(b),...a}),{})}K(a){this.O.forEach(b=>T(b, a))}ea(a,b){this.O.forEach(c=>{c.ea(a,b)})}ca(){this.O.forEach(a=>{a.ca()})}M(){this.O.forEach(a=>{a.M()})}}var Qf=0,Rf=1;class Sf extends Xe{constructor(a,b){super(a);this.O=new RegExp(b)}B(){if(this.R.Ia&&this.O.test(this.R.Ia.qurl))return this.R.Ia}ga(){return{xhr:!0}}};class Tf extends U{constructor(a,b){super();this.R=a;this.Fa=b}B(){return this.R.J.g.ia.querySelector(document,this.Fa)}};class Uf extends U{constructor(a,b){super();this.R=a;this.element=b}B(){const a=this.element.evaluate();if(a)return this.R.J.g.G.innerHTML(a)}};class Vf extends U{constructor(a,b,c){super();this.element=b;this.Od=c}B(){const a=this.element.evaluate();if(a)return a.getAttribute(this.Od)}};class Wf extends U{constructor(a,b){super();this.href=b}B(){const a=this.href.evaluate();try{return new URL(a)}catch(b){}}ga(){return Q(this.href)}K(a){T(this.href,a)}};class Xf extends Wf{constructor(a,b,c){super(a,b);this.ua=c}B(){const a=super.B();if(a)return a[this.ua]}};class Yf extends Xf{constructor(a,b,c,d){super(a,b,"searchParams");this.la=c;this.O=d}B(){var a=super.B();if(a&&(a=a.getAll(this.la))&&a.length!==0)return this.O?a.find(b=>this.O.evaluate(b)):a.map(encodeURIComponent).join("&")}};class Zf extends Xe{B(){if(!this.R.mc)return"";const a=this.R.mc.args;return a.length===0?"":"["+a.join(",")+"]"}ga(){return{console:!0}}};class $f extends U{constructor(a,b,c,d){super();this.R=a;this.method=b;this.rb=Xa(c,d?"i":"");a.Xe.add(b)}B(){if(!this.R.mc)return!1;const {method:a,args:b}=this.R.mc;return a!==this.method?!1:b.some(this.rb.test.bind(this.rb))}ga(){return{console:!0}}};class ag extends U{constructor(a,b){super();this.O=b}B(){return{Ka:this.O.evaluate(),Ug:!0}}ga(){return me(this.O)}K(a){T(this.O,a)}ea(a,b){this.O.ea(a,b)}ca(){this.O.ca()}M(){this.O.M()}};const bg=(a,b)=>{if(typeof b==="number"||typeof b==="string"||typeof b==="boolean"||b===null)return b;if("$p"in b)return b=b.$p.split("/").slice(1).map(ec),E(a,b,M);throw Error(`Unsupported descriptor "${JSON.stringify(a)}"`);},cg=(a,b)=>c=>{const d=bg(c,a);if(d===M)return!1;c=bg(c,b);return c===M?!1:d===c}; class dg extends U{constructor(a,b){super();this.R=a;Sa(JSON.stringify(b,cc));if(b.o==="eq")a=cg(...b.a);else throw Error(`unsupported operation "${b.o}"`);this.O=a;this.state={me:-1,qc:-1}}B(){const a=this.R.ib||[],b=a.slice(this.state.qc+1).some(this.O);b&&(this.state.me=this.state.qc,this.state.qc=a.length-1);return b}ga(){return{timeline:!0}}ca(){this.state.qc=this.state.me}M(){this.state.me=this.state.qc}ea(a,{ib:b}){b=b.findLastIndex(({id:c})=>a.id===c);this.state={me:b,qc:b}}};class eg extends U{constructor(a,b,c,...d){super();this.la=b;this.O=d}B(){const a=this.O.map(c=>c.evaluate());let b=!1;this.la===fg&&a.every(c=>c.Ka)&&(b=!0);this.la===gg&&a.some(c=>c.Ka)&&(b=!0);b?this.O.forEach(c=>{c.M()}):this.O.forEach(c=>{c.ca()});return{Ka:b,Ug:!0}}ga(){return this.O.reduce((a,b)=>({...Q(b),...a}),{})}K(a){this.O.forEach(b=>T(b,a))}ea(a,b){this.O.forEach(c=>{c.ea(a,b)})}ca(){this.O.forEach(a=>{a.ca()})}M(){this.O.forEach(a=>{a.M()})}}var fg=0,gg=1;var hg={LogicalClause:pe,ValueClause:te,EventClause:ve,SessionEventClause:we,EventValue:xe,NE:ag,E:ue,MDE:Af,HE:ye,MAE:Pf,MNE:eg,Not:Fe,Is:Ge,Contains:He,StrCmp:Ie,Between:Me,Compare:Ne,IsTrue:Re,IsNotNull:Se,HasKey:Te,KeyValue:Ve,Matches:Ue,Exists:We,DV:ze,Sum:Ae,V:Be,RE:Ce,PF:De,CV:Ee,FormSubmitted:Ye,FormFieldFilled:Ze,FormFieldSubmittedValue:$e,FieldFilledNode:ef,SEventValue:af,EventTimestamp:bf,FirstHit:cf,SessionEngagementTime:df,ElementClicked:ff,ElementClickedNode:gf,CookiePresent:lf,CookieValue:mf, JSValue:pf,JSValueEx:qf,XHR:Sf,XHRRequest:rf,XHRResponse:sf,XHRResponseHeader:vf,XHRRequestHeader:wf,XHRResponseHeaderValue:Nf,XHRRequestHeaderValue:Of,JSONPath:yf,JSONPathValue:zf,ObjPath:If,ObjPathValue:Kf,ObjSearch:Lf,ObjSearchValue:Mf,WV:Jf,SelectorPresent:hf,SelectorElement:Tf,SelectorHtml:Uf,SelectorAttribute:Vf,SelectorText:jf,SelectorValue:kf,URLValue:Wf,URLPropValue:Xf,URLParamsValue:Yf,VXF:Cf,XFCC:Df,XFRR:Ef,XFJPar:Ff,XFPK:Gf,XFMG:Hf,ConsoleMatch:$f,Console:Zf,Timeline:dg}; const ig=new window.Map([[-56,{ja:2}],[-57,{ja:2}],[-58,{ja:2}],[-59,{ja:2}],[-60,{ja:2}],[-61,{ja:2}],[-65,{ja:2}],[-82,{ja:1,Ca:1}],[-83,{ja:1,Ca:1}],[-84,{ja:1,Ca:1}],[-85,{ja:1,Ca:1}],[-86,{ja:1,Ca:1}],[-87,{ja:1,Ca:1}],[-88,{ja:1,Ca:1}]]); function P(a,b,c,d=null,e=!1){b.id!==0&&(c=Pa(c).substring(0,a.J.D.config.maxStoredEventLength));if(b.di&&!c)return!1;if(b.kd&&!a.ob)return a.M.push({event:b,value:c,bc:d}),!1;var f=b.id;b.pe&&(f=b.pe);var g={i:f,f:b.flags,v:c,t:b.ka?b.ka:a.J.g.Z.W()},h=d?d.hash:c;jg(a,b)&&(h=Sa(h));if(f!==0&&a.K.has(`${f}:${h}`)||c===null&&a.K.has(`${f}:`)||f!==0&&a.B[f]&&(a.B[f].x===1||a.B[f][h]))return!1;b.Ca?b.Ca==2&&(a.B[f]||(a.B[f]={}),a.B[f][h]=1):(kg(a,b),a.B[f]={x:1});if(b.ja)b.ja===2&&a.K.add(`${f}:${h}`); else{if(a.qa[f])return!1;a.qa[f]=1}if(b.id!=0){h={id:f,value:c,timeStamp:b.ka};d!==null&&(h.hash=d.hash);a.ib.push(h);f=a.la;try{f.Ta.Storage.setItem.call(window.localStorage,"QEventChannel",f.Ta.stringify(h))}catch(k){}}d!==null&&(g.h=d.hash,g.ev=d.value);(b.flags&64)>0?a.J.fa.set("cv",c):(b.flags&128)>0&&a.ob&&(a.ob.abn=c);(b.flags&1)>0&&a.J.fa.set("cv",null);lg(a,b,g,c,e).catch(ua);return!0} function mg(a,b){var c=b.t;const d=b.v;if(!c||!d)return b;b=[a];for(let e=0;e0&&g.ja==2&&(g.Ca=2);const h=g.kh=Q(g.event);for(const k in h){if(!h.hasOwnProperty(k))continue;let l=this.ea[k];l||(l=this.ea[k]={});l[f]=g}this.Qb[f]=g;this.O[f]=g}catch(f){console.error(`QM: failed to load event${e&& e.i?` (id: ${e.i})`:""}:`,f)}}}bg(){qg(this,"pageready",this.J.Jb);qg(this,"dom",this.J.Jb)}kb(){qg(this,"engagement",this.J.g.Z.W())}cb(a){this.ib.push(a)}};function yg(a,b){"persist"in a.B||(a.B.persist=[]);a.B.persist.push(b)}class zg{constructor(){this.B={}}La(a,b){a in this.B&&this.B[a].forEach(c=>c(b))}};function Ag(a,b){a.B={};try{const c=Bg(a);for(let d=0;d{b.key==a.K&&Ag(a,a.K)})}catch(b){}}function Cg(a,b){if(b=E(b,["exp"],!1))if(b=new a.Ta.Date(b),a.J.g.Z.W()>b.getTime())return!0;return!1}function Bg(a){return a.J.D.config[a.ca].filter(b=>b=="localStorage"||b=="sessionStorage")} function Eg(a,b,c=null,d=!0){try{const e=a.Ta.stringify(a.B),f=Bg(a);for(let g=0;g{w=w.target.result;try{w.createObjectStore("t",{autoIncrement:!0}).put(new Blob),f(!1)}catch(D){(D instanceof Error&&typeof D.message=== "string"?D.message:String(D)).includes("are not yet supported")?f(!0):f(!1)}finally{w.close(),indexedDB.deleteDatabase(r)}};q.onerror=()=>f(!1)}catch(q){f(!1)}}async function k(){var r;if(typeof((r=navigator.storage)==null?void 0:r.getDirectory)==="function")await g();else if(navigator.maxTouchPoints!==void 0)h();else a:{r=window.openDatabase;const q=window.localStorage;try{r(null,null,null,null)}catch(w){f(!0);break a}try{q.setItem("test","1"),q.removeItem("test")}catch(w){f(!0);break a}f(!1)}}function l(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(r, q){r=Math.round(q/1048576);q=Math;var w=q.round;let D,C,t;var p=(t=window==null?void 0:(D=window.performance)==null?void 0:(C=D.memory)==null?void 0:C.jsHeapSizeLimit)!=null?t:1073741824;f(r{q.error&&q.error.name==="InvalidStateError"&&w.preventDefault();f(!0)};q.onsuccess=()=>{indexedDB.deleteDatabase("inPrivate");f(!1)}}}let x=!1;(async function(){a?await k():b?self.Promise!==void 0&&self.Promise.allSettled!==void 0?l():m():c?await n():navigator.msSaveBlob!==void 0?f(window.indexedDB===void 0):f(!1)})().catch(e)})} ;function L(a,b,c,d="info"){b={t:"m",ctx:a.kf(),sub:a.sub,n:b,v:c,l:d};a.log(b)}function Hg(a){a.B===null&&(a.B=a.G.setTimeout(()=>{a.flush()},a.ca))} class Ig{constructor({G:a,D:b,sub:c,kf:d}){this.G=a;this.M="";this.sub=c;this.kf=d;this.buffer=[];this.K=0;this.B=null;this.ca=b.config.publishInterval||3500;b.config.ingestBaseURL&&(this.M=b.config.ingestBaseURL.replace(/\/+$/,"")+"/lgs/api/v1/logs")}log(a){if(!this.M)return!1;const b=this.G.stringify(a).length;this.K+b>=6E4&&this.flush();this.buffer.push(a);this.K+=b;Hg(this);return!0}flush(){this.B!==null&&(this.G.clearTimeout(this.B),this.B=null);if(this.buffer.length&&this.M){var a=this.buffer; this.buffer=[];this.K=0;window.navigator.sendBeacon(this.M,this.G.stringify(a))}}};const Jg=":checked :empty :host :invalid :last-child :modal :nth-child(n) :only-child :read-only".split(" ").sort(),Kg={'"':""",">":">",":":":","\u00a7":"§","[":"[","]":"]","&":"&"},Lg=/:|>|"|\u00a7|\[|]|&/g; function Mg(a,b,c){if(b===document)return"html";var d=new $c(c.Yh,a.L);const e=Y(a.L,b).toLowerCase();var f=a.L.g.G.parentNode(b);let g=a.L.g.G.parentElement(b),h=">";g||(g=f&&f.host)&&(h=">\u00a7>");f=g?a.L.g.G.Array.from(a.L.g.G.children(g)):[b];const k=f.indexOf(b);let l=e;var m={};for(let n=0;nn{l+=`[${n}="${x}"]`});for(d=0;d{if(e.length>100)return e;if(f.nodeType===3){var g=a.L,h=g.g.G.textContent(f);f.nodeType===3&&(Rg(g,f)||Sg(g,f))&&(h=O(h));return`${e} ${h}`}for(f=document.createTreeWalker(f,window.NodeFilter.SHOW_TEXT);f.nextNode()&&e.length<100;){g=f.currentNode;h=Y(c,c.g.G.parentNode(g));if(h==="style"||h==="script")continue;h=c.g.G.textContent(g);if(Rg(c,g)||Sg(c,g))h=O(h);h.length&&(e=`${e} ${h}`)}return e}, "");d=d.replace(Pg," ").trim().substring(0,100);return Pa(d)}class Tg{constructor(a){this.L=a}};const Ug=new Map,Vg=/,(?!(?:[^[\]]+\])|(?:[^()]+\)))\s*/g,Wg=/(?:^|\s)S#(?:\s|$)/,Xg=a=>{Ug.has(a)||Ug.set(a,a.split(Vg));return Ug.get(a)},Yg=(a,b,c="")=>{if(a.parentRule){const d=b.Array.from(a.parentRule.cssRules).indexOf(a);c=c?`${d} ${c}`:d+"";return Yg(a.parentRule,b,c)}a=b.Array.from(a.parentStyleSheet.cssRules).indexOf(a);return c?`${a} ${c}`:a+""};function Zg(a,b){a.B.push(b);return a.B.length-1}function $g(a){return a.mode[a.mode.length-1]}function ah(a,b){const c=$g(a);if(b.nodeType!==1)var d=null;else d=a.ma.get(b)||{},d=d.jd===!1?!1:a.oe||d.jd===!0?!0:a.Ob(b);if(d)a.mode.push("scrub");else{const e=a.ma.get(b)||{};b=e.encrypt===!0?!0:e.encrypt===!1?!1:a.Nb(b);c==="scrub"&&d===!1?b?a.mode.push("encrypt"):a.mode.push(null):b&&c!=="scrub"?a.mode.push("encrypt"):c==="encrypt"&&b===!1?a.mode.push(null):a.mode.push(c)}} class bh{constructor(a){this.G=a.G;this.ma=a.ma;this.oe=a.oe;this.ee=a.ee;this.ze=a.ze;this.ye=a.ye;this.url=a.url;this.He=a.He;this.Ob=a.Ob;this.Nb=a.Nb;this.wb=a.wb;this.supports=a.supports;this.Db=a.Db;this.da=a.da;this.mode=[null];this.Ib=0;this.namespaceURI=null;this.B=[];this.De=[]}};const ch=new Set(["INPUT","TEXTAREA","SELECT","OPTION","OUTPUT"]),eh=(a,b)=>{const c=[];for(let d=0;d{const c=b.namespaceURI;ah(b,a);var d=$g(b);const e=b.ma.get(a)||{};var f=!1;let g=null;a instanceof window.HTMLElement||a.namespaceURI==="http://www.w3.org/1999/xhtml"||(g=a.namespaceURI);const h=g?b.G.tagName(a):b.G.tagName(a).toUpperCase(),k={n:h,q:b.Db(a).da};h==="SCRIPT"&&(f=!0);!e.$c&&h==="DIALOG"&&b.supports.Gf&&b.G.matches(a, ":modal")&&(k.m=!0);!e.$c&&a.hasAttribute("popover")&&b.supports.gh&&b.G.matches(a,":popover-open")&&(k.pop=!0);var l=!1;if(h==="STYLE"&&a.sheet)try{l=a.sheet.cssRules.length>0}catch(m){}(l||h==="LINK")&&b.De.push({node:a,sb:k});g!==c&&(b.namespaceURI=g,k.N=g);b.Kf=h;k.a=f?[]:eh(a.attributes,b);b.Kf=null;h==="IFRAME"&&typeof b.Cc==="string"&&k.a.push({2:{n:"qframe",v:b.Cc}});f={};if(h==="INPUT"){l=a.type.toLowerCase();if(l==="checkbox"||l==="radio"){const m=a.getAttribute("checked"),n=a.checked;m!== null&&n===!1&&(f.checked=!1);m===null&&n===!0&&(f.checked=!0)}if(l==="date"||l==="datetime-local"||l==="month"||l==="number"||l==="time"||l==="week"){for(const m of k.a)if(m[2].n.toLowerCase()==="type"){m[2].v="text";break}k.a.push({2:{n:"data-qm-original-type",v:l}})}}(h==="STYLE"&&!g||h==="LINK")&&a.disabled&&(f.disabled=!0);Object.keys(f).length&&(k.po=f);"value"in a&&ch.has(h)&&dc(a.value)&&(d==="scrub"?k.vm=O(a.value):d==="encrypt"?(k.vm=O(a.value),k.ve=Zg(b,a.value)):k.v=a.value);(d=b.G.shadowRoot(a))&& !e.$c&&(k.sr=dh(d,b));d=b.G.childNodes(a);d.length&&!e.$c&&(h==="TITLE"&&b.ye&&(d=[document.createTextNode(b.url)]),k.C=eh(d,b));h!=="SLOT"||e.$c||b.G.getRootNode(a).slotAssignment!=="manual"||(a=a.assignedNodes({flatten:!0}).map(m=>b.ee(m)).filter(Boolean),a.length&&(k.sn=a));b.namespaceURI=c;b.mode.pop();return k},gh=(a,b)=>{const c=$g(b),d={q:b.Db(a).da};a.nodeValue&&(c==="scrub"?d.vm=O(a.nodeValue):c==="encrypt"?(d.vm=O(a.nodeValue),d.ve=Zg(b,a.nodeValue)):d.v=a.nodeValue);return d},hh=(a,b)=> {const c={q:b.Db(a).da};b.De.push({node:a,sb:c});a=b.G.childNodes(a);a.length&&(c.C=eh(a,b));return c},dh=(a,b)=>{var c=a.nodeType;if(c===1||c===3||c===8||c===9||c===11)b.Db(a).da=b.da();var d=b.He[c];d&&(c===1&&b.Ib++,d(a,b));switch(a.nodeType){case 1:return{1:fh(a,b)};case 2:{c=$g(b);d=b.ma.get(a.ownerElement)||{};let f=a.name,g=a.value,h=f.toLowerCase();if(b.wb.has(f)||wa.has(h)||d.wb&&d.wb.includes(f)||b.Kf==="IFRAME"&&(h==="sandbox"||h==="srcdoc"))a=null;else{b.Kf==="IFRAME"&&f==="src"&&(f="data-original-src"); var e=d.Yf||[];for(const {Od:k,rb:l,ue:m,dh:n}of e)f===k&&(n&&(f=n,h=f.toLowerCase()),g=g.replace(l,m));e={n:f};if(h==="integrity")e.v="";else{if(g){let k=!0;h==="data-select-value"||h==="placeholder"||h==="value"||h==="label"?c==="scrub"?(e.vm=O(g),k=!1):c==="encrypt"&&(e.vm=O(g),e.ve=Zg(b,g),k=!1):d.$d&&d.$d.includes(f)&&(e.vm=O(g),e.ve=Zg(b,g),k=!1);k&&(e.v=g)}a.namespaceURI&&(e.N=a.namespaceURI)}a=e}}return a===null?null:{2:a};case 3:return{3:b.G.tagName(b.G.parentNode(a))==="SCRIPT"?{v:" "}: gh(a,b)};case 4:return{4:gh(a,b)};case 5:return{5:{}};case 6:return{6:{p:a.publicId,s:a.systemId}};case 7:return{7:{t:a.target,d:a.data}};case 8:return{8:b.ze?{v:"",q:b.Db(a).da}:gh(a,b)};case 9:return{9:hh(a,b)};case 10:return b={n:a.name,p:a.publicId,s:a.systemId},a.li&&(b.is=a.li),{a:b};case 11:return b=hh(a,b),b.sa=a.slotAssignment,{b};case 12:return c={p:a.publicId,s:a.systemId},a=b.G.childNodes(a),a.length&&(c.C=eh(a,b)),{c}}};class ih{constructor(){this.gh=this.Gf=!0;try{document.documentElement.matches(":modal")}catch(a){this.Gf=!1}try{document.documentElement.matches(":popover-open")}catch(a){this.gh=!1}}};class jh{constructor(){this.B={}}addEventListener(a,b,c={}){let d=this.B[a];d||(d=this.B[a]=[]);({once:a=!1}=c);d.push({Dg:b,once:a})}removeEventListener(a,b){const c=this.B[a];c&&(this.B[a]=c.filter(function({Dg:d}){return d!=b}))}La(a,b){const c=this.B[a];c&&c.forEach(({Dg:d,once:e})=>{d(b);e&&this.removeEventListener(a,d)})}};const kh=new jh;class lh{constructor(a){this.G=a}matchesSelector(a,b){if(a.nodeType!==1)return!1;if(!a.getRootNode)return this.G.matches(a,b);b=Xg(b);for(const c of b){a:{b=a;const d=c.split(Wg);for(let e=d.length-1;e>=0;--e){if(!this.G.matches(b,d[e])){b=!1;break a}b=this.G.getRootNode(b).host;if(!b&&e!==0){b=!1;break a}}b=!0}if(b)return!0}return!1}querySelector(a,b){return this.querySelectorAll(a,b)[0]}querySelectorAll(a,b){var c=Xg(b);b=[];const d=[];for(const e of c){c=e.split(Wg);if(c.length<2){d.push(e);continue}let f= [...this.G.pb(a,c[0])];for(let g=1;gthis.G.shadowRoot(k)?[...this.G.pb(this.G.shadowRoot(k),h)]:[]))}b=b.concat(f)}d.length>0&&(b=b.concat([...this.G.pb(a,d.join(","))]));return b}closest(a,b){return b?Xg(b).map(c=>({node:a,hf:c.split(Wg)})).sort((c,d)=>d.hf.length-c.hf.length).map(({node:c,hf:d})=>{var e=c;c=d.length-1;a:for(;e;){let f=e.closest(d[c]);if(!f){e=e.getRootNode?e.getRootNode().host:null;continue}--c;for(e=f;c>=0;){e=e.getRootNode?e.getRootNode().host: null;if(!e)return null;if(!this.G.matches(e,d[c])){c=d.length-1;continue a}--c}e=f;break}return e}).reduce((c,d)=>{if(!d)return c;if(!c)return{node:d,depth:Ra(d)};const e=Ra(d);return e>c.depth?{node:d,depth:e}:c},{node:null,depth:0}).node:null}};class mh{constructor(a,b){this.G=a;this.D=b}domain(){try{var a=this.D.config.cookieDomain;if(a!==null&&a!==void 0)return this.D.config.cookieDomain;var b=this.G.Storage.getItem.call(window.sessionStorage,"qmd");if(b!==null&&b!==void 0)return this.D.config.cookieDomain=b;const c=window.location.host.split(":")[0].split(".");a=null;for(b=2;b<=c.length;b++){const d=c.slice(Math.max(c.length-b,0)).join(".");this.set({["qm-rc"]:"",domain:d});if(this.getAll().indexOf("qm-rc")>-1){a=d;break}}if(a!==null)return this.jb({["qm-rc"]:"", domain:a}),this.G.Storage.setItem.call(window.sessionStorage,"qmd",a),this.D.config.cookieDomain=a}catch(c){}return window.location.hostname}set(a){a.path="/";if(!a.domain){var b=this.domain();a.domain=b}b=[];for(let c in a)a.hasOwnProperty(c)&&b.push(`${c}=${a[c]}`);window.location.protocol=="https:"&&(b.push("secure"),b.push(`samesite=${this.D.config.sameSiteFlag}`));b.push("");this.G.ra.set(b.join(";"))}jb(a){this.set({...a,expires:"Thu, 01 Jan 1970 00:00:00 GMT"})}get(a){var b=this.getAll();b= Object.entries(Qa(b));for(let [c,d]of b)if(decodeURIComponent(c)===a)return decodeURIComponent(d);return null}getAll(){return this.G.ra.get()}};class nh extends Error{constructor(a){super(a)}}class oh extends Error{constructor(a){super(a)}}class ph extends Error{constructor(){super()}} function qh(a,b){const c=new URL(wb(a.D.config,a.sub),window.location.href);for(const [f,g]of Object.entries(b))c.searchParams.set(f,g);a:if(b=a.D.config,b.proxyIngest&&(b=b.ingestParamsCallback)){try{var d=window[b];if(typeof d!=="function")break a;var e=d()}catch(f){L(a.ba,"ingest:params-callback-error",{callback:b,message:f&&f.message},"warn");break a}if(e)if(d=a.G.pd(e),d!=="[object URLSearchParams]")console.warn('QM: ingest params callback "'+b+'" must return a URLSearchParams object but returned '+ d+". Additional ingest params will not be applied."),L(a.ba,"ingest:params-callback-type",{callback:b,type:d},"warn");else try{a=0;for(const f of e.entries()){if(a++>=1E3)break;const g=f[0];g&&!c.searchParams.has(g)&&c.searchParams.set(g,f[1])}}catch(f){}}return c}function rh(a,b,c){return window.navigator.sendBeacon(qh(a,b).href,c)} function sh(a,b,c,d,e){a.B>0&&(c.E=a.B);const f=qh(a,c);var g={};e&&(g["Content-Type"]=e);const h=a.G.contentWindow;g=new h.Request(f.href,{method:b,headers:g,body:d,credentials:"omit"});return h.fetch(g).then(k=>{if(k.status!==200){const l=f.searchParams;throw new nh("XHR_STATUS="+k.status+"-for-"+l.get("b")+"-"+l.get("S")+"-"+l.get("u")+"-"+`Q:${l.get("Q")||"-"}`+"-"+k.status||"NA");}a.B=0;return k}).catch(k=>new Promise((l,m)=>{if(a.B{sh(a,b,c,d,e).then(l).catch(m)}, 1500*a.B);else{var n=d?d.byteLength||d.size||d.length||"?":0;m(new oh(k instanceof nh?k.message:`FETCH_ERROR=${k.name}:${k.message}-SIZE=${n}`))}}))}function th(a,b,c){return sh(a,"PATCH",b,c,"application/json")}class uh{constructor(a,b,c,d){this.G=a;this.D=b;this.sub=c;this.ba=d;this.B=0}get(a){return sh(this,"GET",a)}};function vh(a){a.M=0;a.B=!1}async function wh(a,b){b=(new TextEncoder).encode(b);const {readable:c,writable:d}=new window.CompressionStream("deflate"),e=d.getWriter();e.write(b);e.close();return new Uint8Array(await (new a.G.contentWindow.Response(c)).arrayBuffer())} class xh{constructor(a,b,c,d,e){this.J=a;this.D=c;this.G=e;this.ca=d;this.K=this.M=0;this.ea=b;this.B=!1}async send(a,b){this.B=!0;const c=this,d=this.M++;let e=a;const f=a.length,g=this.ea(d,b);g.S=this.K;g.b=f;g.z=2;if(this.D.config.enableCompression&&"CompressionStream"in window&&"TextEncoder"in window&&!c.J.$a)try{e=await wh(this,e),g.z=1}catch(h){}if(c.J.$a)a=rh(c.ca,g,e),c.B=!1,a||c.J.xa("DATA_LOSS",`sendBeacon failed to send ${f/1E3}kb on unload`);else return sh(c.ca,"POST",g,e,"text/plain").then(async h=> {c.B=!1;if(d===0&&!g.Q){h=await h.text();if(h==="<>")throw new ph;return h}c.K+=f},h=>{c.B=!1;throw h;})}};const yh=a=>a.toLowerCase().split("/").filter(b=>b);function zh(a){window.addEventListener("message",async b=>{var c=b.data;if(c&&typeof c=="object"&&c.namespace==="quantum"&&c.messageId!==void 0){const {method:e,url:f,body:g,messageId:h,response:k,error:l}=c;var d=yh(f);if(d[d.length-1]==="connect"||c.scope===a.sub)if(a.B.size>50&&L(a.ba,"MessageHandler: high message count",{size:a.B.size},"warn"),k){if(g&&!g.ack&&L(a.ba,"MessageHandler:missing ack",{method:e,url:f},"error"),c=a.B.get(h))l?c.reject(l):c.resolve(g),a.B.delete(h)}else{d=b.source;let m= void 0,n=void 0;try{n=await Ah(a,{method:e,url:f,body:g,context:{frame:()=>Bh(a,b),sender:d,scope:c.scope}})}catch(x){m=x}n===void 0&&m===void 0||d.postMessage({messageId:h,method:e,url:f,body:n,response:!0,error:m,namespace:"quantum",scope:a.sub},"*")}}},!1)}function Ch(a,b,c){a=a.G.pb(b,"iframe, frame");for(const d of a)if(d.contentWindow===c)return d;return null} function Bh(a,b){return new Promise(c=>{const d=(e=0)=>{if(e>a.Hb)c(null);else{var f=Ch(a,document,b.source);if(f)return c(f),f;for(const g of a.dc)if(f=Ch(a,g,b.source))return c(f),f;setTimeout(d,a.Kb,e+1)}};d()})}async function Ah(a,b){const c=b.method;var d=b.url;const e=b.body;b=b.context;if(typeof c!=="string"||typeof d!=="string")throw Error("MessageHandler:400");d=yh(d);a=E(a.Ma,[c.toUpperCase(),...d],null);if(a===null)throw Error("MessageHandler:404");return await a(e,b)} class Dh{constructor(a={}){this.ba=a.ba;this.sub=a.sub;this.G=a.G;this.Ma=a.Ma;this.dc=a.dc;this.Hb=a.Hb||5;this.Kb=a.Kb||500;this.B=new Map;zh(this)}Ga(a,{method:b,url:c,body:d}){const e=Ia(),f=new yb;this.B.set(e,f);const g=(h=0)=>{try{a.postMessage({messageId:e,method:b,url:c,body:d,namespace:"quantum",scope:this.sub},"*")}catch(k){L(this.ba,"MessageHandler: unable to post message",{message:k.message,url:c,method:b},"error")}setTimeout(()=>{if(this.B.get(e)){const k=h+1;k>this.Hb?(f.reject(Error("MessageHandler:timeout")), this.B.delete(e)):g(k)}},this.Kb)};g();return f.promise}};function Eh(a){typeof a.Pa.handleAndroidMessage==="undefined"&&(a.Pa.handleAndroidMessage=b=>{window.dispatchEvent(new CustomEvent("qm-android-sdk-message",{detail:{message:b}}))});window.addEventListener("qm-android-sdk-message",b=>{({detail:{message:b}}=b);const c=a.G.Ra(b);if(c&&typeof c=="object"&&c.namespace==="quantum"&&c.messageId!==void 0){const {method:d,url:e,body:f,messageId:g,response:h,error:k}=c;b=yh(e);if(b[b.length-1]==="connect"||c.scope===a.sub)if(a.B.size>50&&L(a.ba,"AndroidHandler:high message count", {size:a.B.size}),h){if(f.ack||L(a.ba,"AndroidHandler:missing ack",{method:d,url:e}),b=a.B.get(g))k?b.reject(k):b.resolve(f),a.B.delete(g)}else(async()=>{let l=void 0,m=void 0;try{m=await Fh(a,{method:d,url:e,body:f,context:{scope:c.scope}})}catch(n){l=n.message}m===void 0&&l===void 0||a.Pa.postMessage(a.G.stringify({messageId:g,method:d,url:e,body:m,response:!0,error:l,namespace:"quantum",scope:a.sub}))})()}else L(a.ba,"AndroidHandler:invalid message")})} async function Fh(a,b){const c=b.method;var d=b.url;const e=b.body;b=b.context;if(typeof c!=="string"||typeof d!=="string")throw Error("AndroidHandler:400");d=yh(d);a=E(a.Ma,[c.toUpperCase(),...d],null);if(a===null)throw Error("AndroidHandler:404");return await a(e,b)} class Gh{constructor(a={}){this.ba=a.ba;this.sub=a.sub;this.G=a.G;this.Ma=a.Ma;this.Pa=a.Pa;this.timeout=a.timeout||3E3;this.B=new Map;Eh(this)}Ga({method:a,url:b,body:c}){const d=Ia(),e=new yb;this.B.set(d,e);this.Pa.postMessage(this.G.stringify({messageId:d,method:a,url:b,body:c,namespace:"quantum",scope:this.sub}));setTimeout(()=>{this.B.get(d)&&(e.reject(Error("AndroidInterface:timeout")),this.B.delete(d))},this.timeout);return e.promise}};class Hh{constructor(a={}){this.Pa=a.Pa;this.ba=a.ba;this.sub=a.sub;this.timeout=a.timeout||3E3}Ga({method:a,url:b,body:c}){const d=Ia(),e=new yb;if(!this.Pa)return e.reject(Error("IosInterface:404")),e.promise;this.Pa[d]=({body:f,error:g})=>{g?e.reject(g):e.resolve(f);delete this.Pa[d]};this.Pa.postMessage({messageId:d,scope:this.sub,method:a,url:b,body:c});setTimeout(()=>{this.Pa[d]&&e.reject(Error("IosInterface:timeout"))},this.timeout);return e.promise}};function Ih(a){a.channel.addEventListener("to-sdk",b=>{if(b&&typeof b=="object"&&b.namespace==="quantum"&&b.messageId!==void 0){var {method:c,url:d,body:e,messageId:f,response:g,error:h}=b;a.B.size>50&&L(a.ba,"VocHandler: high message count",{size:a.B.size},"warn");if(g){if(e&&!e.ack&&L(a.ba,"VocHandler:missing ack",{method:c,url:d},"error"),b=a.B.get(f))h?b.reject(h):b.resolve(e),a.B.delete(f)}else(async()=>{let k=void 0,l=void 0;try{l=await Jh(a,{method:c,url:d,body:e,context:{}})}catch(m){k=m.message}l=== void 0&&k===void 0||a.channel.La("to-voc",{messageId:f,method:c,url:d,body:l,response:!0,error:k,namespace:"quantum",scope:a.sub})})()}})}async function Jh(a,b){const c=b.method;var d=b.url;const e=b.body;b=b.context;if(typeof c!=="string"||typeof d!=="string")throw Error("VocHandler:400");d=yh(d);a=E(a.Ma,[c.toUpperCase(),...d],null);if(a===null)throw Error("VocHandler:404");return await a(e,b)}function Kh(a){try{delete window[a.oc]}catch(b){}} function Lh(a){Kh(a);a.B.forEach(b=>{b.reject(Error("VocInterface:destroyed"))});a.B.clear();a.connected=!1} class Mh{constructor(a={}){this.ba=a.ba;this.sub=a.sub;this.Ma=a.Ma;this.channel=a.channel;this.oc=a.oc;this.timeout=a.timeout||3E3;this.B=new Map;this.connected=!1;Ih(this);try{const b=this.channel;Object.defineProperty(window,this.oc,{value:{addEventListener:b.addEventListener.bind(b),removeEventListener:b.removeEventListener.bind(b),emit:b.La.bind(b)},configurable:!0,enumerable:!1})}catch(b){L(this.ba,"VocInterface: unable to expose channel",{message:b.message},"error")}}Ga({method:a,url:b,body:c}){const d= Ia(),e=new yb;this.B.set(d,e);this.channel.La("to-voc",{messageId:d,method:a,url:b,body:c,namespace:"quantum",scope:this.sub});setTimeout(()=>{this.B.get(d)&&(e.reject(Error("VocInterface:timeout")),this.B.delete(d))},this.timeout);return e.promise}}function Nh(a,b){a.B.forEach(c=>{c.connected&&c.Ga(b).catch(()=>{})})}class Oh{constructor(){this.B=new Set;this.counter=0}add(a){this.B.add(a)}};class Ph{sample(a,b){const c=d=>{if(Math.random(){switch(b){case "n":a=parseFloat(a);break;case "i":a=parseInt(a,10);break;case "s":a=`${a}`;break;case "b":a=a==="true"?!0:a==="false"?!1:a===1||a==="1"?!0:a===0||a==="0"?!1:!!a;break;case "d":b=new Date(a);isNaN(b.getTime())||(a=b.toISOString().slice(0,10));break;case "dt":b=new Date(a),isNaN(b.getTime())||(a=b.toISOString())}return a};const Rh={namespace:"alloy",tenant:null,prefix:null,mapping:{}},Sh=a=>{if(a.mapping){const {datastreamId:b,map:c,namespace:d}=a.mapping;a.datastreamId=b;a.mapping=c||Rh.mapping;a.namespace=d||Rh.namespace}return a};function Th(a){if(a.K!==null&&a.ha!==null&&a.za!==null){a.M={ecid:a.K,qmUserIdCookie:a.za,qmSessionIdCookie:a.ha,qmSessionReplayLink:a.J.oa.getReplay()};for(const [b,c,d,e]of a.buffer)try{Uh(a,b,c,d,e)}catch(f){console.warn("Could not send buffered event")}a.buffer=[]}}function Vh(a,b=0){const c=window[a.B.config.namespace];c?(a.ca=c,c("getIdentity").then(d=>{a.K=d.identity.ECID;Th(a)})):b>10?a.disabled=!0:setTimeout(()=>{Vh(a,b++)},500)}function Wh(a,b){a.ha=b;Th(a)} function Xh(a,b){a.za=b;Th(a)}function Uh(a,b,c,d,e){if(a.M===null)a.buffer.push([b,c,d,e]);else{var f=Yh(a);c=Zh(a,c,d,e);d=[a.ea,a.B.config.prefix,"qmMetadata"].filter(Boolean);Ca(b.xdm,d,{...a.M,...f,...c});a.B.config.datastreamId&&(b.edgeConfigOverrides={datastreamId:a.B.config.datastreamId});a.ca("sendEvent",b).catch(g=>{console.warn("QM: Unable to send mapped data to Adobe:",g.message);L(a.J.ba,"ADOBE:send-failure",{message:g.message})})}} function Yh(a){a=a.J.Ea;const b=new URL(a);return{url:`${b.origin}${b.pathname}`,urlFull:a,urlPath:b.pathname,urlParameters:b.searchParams.toString()}}function Zh(a,b,c,d){a=a.J.df[b.toString()]||"UNKNOWN";return{eventName:d?"":a,eventValue:d?"":c.toString(),errorName:d?a:"",errorValue:d?c.toString():""}} function $h(a,{object:b,hh:c,handle:d,event:e,hi:f=null,recursive:g=!1}){for(const k of c){const {q:l,a:m,"a-":n,t:x,v:r,s:q,p:w}=k;r!==void 0?c=r:l.startsWith("$")?(c=f,c=E(c,l.substring(2).split("."),M)):(c=e,c=E(c,l.split("."),M));if(c===null||c==="")continue;if(c===M){L(a.J.ba,"ADOBE:mapping-failure",{item:d,key:l,issue:"key not found"});continue}var h=void 0;if(x==="a"){if(q===void 0&&w===void 0){L(a.J.ba,"ADOBE:schema-failure",{item:d,key:l,issue:"schema|primitive missing for array handling"}); continue}if((q||w)&&!Array.isArray(c)){L(a.J.ba,"ADOBE:array-failure",{item:d,key:l,issue:"Cannot create mapped array from a non-array event value"});continue}if(w)h=c.map(D=>Qh(D,w));else if(q){h=[];for(const D of c)try{c={},$h(a,{object:c,hh:q,handle:d,event:e,hi:D,recursive:!0}),h.push(c)}catch(C){L(a.J.ba,"ADOBE:array-mapping-failure",{item:d,key:l,message:C.message})}}}else h=Qh(c,x);typeof n==="string"?c=[...n.split(".")].filter(D=>D):(c=g?[]:[a.ea,a.B.config.prefix],c=c.concat(...m.split(".")).filter(D=> D));Ca(b,c,h)}}class ai{constructor(a,b){this.J=a;this.B=new Fc(b,Rh,{},{},Sh,ua);this.B.sc();this.za=this.ha=this.K=this.M=this.ca=null;this.disabled=!1;this.buffer=[]}get ea(){const a=this.B.config.tenant;return a?a.startsWith("_")?a:`_${a}`:a}};function bi(a){a.Da.forEach(b=>{b.hb.forEach((c,d)=>{c.interval&&(ci(a,b,c),a.K.add(d))})})}function di(a){a.K.forEach(b=>{for(const [,c]of a.Da)if(c.hb.has(b)){b=c.hb.get(b);b.hd=a.J.g.G.W();ei(a,c,b);break}});a.K.clear()} function fi(a,b){a.B.get(b)&&(a.J.D.config.zones.forEach(c=>{const {sel:d,name:e,threshold:f}=c;c=a.J.g.ia.querySelectorAll(b,d);c.length>1&&!e.includes("#")&&!e.includes("[")&&L(a.J.ba,"zones: multiple nodes found with non-placeholder name",{sel:d,name:e,count:c.length},"warn");(c.length>1&&!e.includes("#")&&!e.includes("[")?[c[0]]:c).forEach((g,h)=>{var k=e;if(k.includes("#"))k=k.replace("#",h+1);else if(k.includes("[")){a:{k=k.split("[").pop().split("]").shift();let l=g.getAttribute(k);if(!l){const m= g.querySelector(`[${k}]`);if(m&&(l=m.getAttribute(k),!l)){k=!1;break a}}k=l}k||(L(a.J.ba,"zones: unable to get zone name from attribute",{sel:d,name:e},"warn"),k=`${k}[${h+1}]`)}h=Ng(a.J.g.rd,g);a.Da.has(k)||a.Da.set(k,{name:k,threshold:f,hb:new Map,We:0,ge:0,dd:!1,cf:h,rh:d,he:null});k=a.Da.get(k);k.hb.has(g)||(h={cf:h,interval:null,hd:null,Va:null,isIntersecting:!1},k.hb.set(g,h),gi(a,g,k,h))})}),a.Da.forEach(c=>{const d=[];c.hb.forEach((e,f)=>{a.J.g.G.isConnected(f)||c.dd||(ci(a,c,e),e.Va&&(e.Va.disconnect(), e.Va=null),d.push(f))});d.forEach(e=>{c.hb.delete(e)})}))}function hi(a){const b=[],c=[];a.Da.forEach((d,e)=>{d.dd&&(b.push({n:e,t:d.ge,c:d.We,ev:d.cf,ss:d.rh,d:d.he}),c.push({n:e,t:d.ge,c:d.We,ev:d.cf,ss:d.rh,d:d.he}));d.dd=!1});b.length>0&&V(a.J,"z",b);c.length>0&&K(a.J,{t:"z",z:c})} function ii(a,b){try{let c=a.B.get(b);c||(a.B.set(b,{gb:null}),c=a.B.get(b));c.gb||(c.gb=setTimeout(()=>{fi(a,b);c.gb=null},300));a.M===null&&(a.M=setInterval(()=>{hi(a)},a.J.D.config.publishInterval))}catch(c){L(a.J.ba,"zones: error finding zones in document",{error:c},"error")}}function ci(a,b,c){c.interval&&(clearInterval(c.interval),c.interval=null);ji(a,b,c)}function ki(a){a.Da.forEach(b=>{b.hb.forEach(c=>{ci(a,b,c)})});hi(a)} function li(a){a.Da.forEach(b=>{b.hb.forEach(c=>{c.Va&&(c.Va.disconnect(),c.Va=null);c.interval&&(clearInterval(c.interval),c.interval=null)})});a.Da.clear();a.B.forEach(b=>{b.gb&&(clearTimeout(b.gb),b.gb=null)});a.B.clear();a.M!==null&&(clearInterval(a.M),a.M=null);a.K.clear()} function gi(a,b,c,d){!d.Va&&window.IntersectionObserver&&(d.Va=new window.IntersectionObserver(e=>{e.forEach(f=>{try{({isIntersecting:f}=f);if(f&&!d.isIntersecting&&(d.hd=a.J.g.G.W(),ei(a,c,d),c.he===null)){const [,g]=mi(a.J,document);c.he=g}!f&&d.isIntersecting&&(ci(a,c,d),a.K.delete(b));d.isIntersecting=f}catch(g){L(a.J.ba,"zones: error observing zone",{error:g},"error")}})},{root:null,threshold:c.threshold}),d.Va.observe(b))} function ei(a,b,c){c.interval||(c.interval=setInterval(()=>{ji(a,b,c)},a.J.D.config.publishInterval))}function ji(a,b,c){c.hd&&(a=a.J.g.G.W(),b.ge+=B(a-c.hd),b.dd=!0,c.hd=a)}class ni{constructor(a){this.J=a;this.Da=new Map;this.B=new Map;this.M=null;this.K=new Set;this.J.g.G.addEventListener(document,"visibilitychange",()=>{document.hidden?bi(this):di(this)},!0)}};function oi(a){let b=[],c=null;return a===null||a===void 0?function(d){if(this.L.Na)try{pi(this,d)}catch(e){}finally{this.Ha.La("mutations-observed",d)}}:function(d){this.L.Na&&(b.push(d),c||(c=setTimeout(()=>{const e=b.flat();b=[];c=null;try{pi(this,e)}catch(f){}finally{this.Ha.La("mutations-observed",e)}},a)))}};function pi(a,b){a.K=a.L.g.Z.W();const c=new Set;c.add(document);a.D.aa.rf.length>0&&(b=qi(a,b));const {cc:d,...e}=ri(a,b),f=a.ca.bind(a,e);d.forEach(g=>{if(f(g)){var h=g.target;if(g.type==="attributes"){const k=h.getAttribute(g.attributeName),l=si(a.L,h,g.attributeName,k);let m;a.G.tagName(h).toUpperCase()==="LINK"&&h.href&&h.rel.toLowerCase().includes("stylesheet")&&a.G.isConnected(h)&&g.attributeName==="href"&&(m=a.L.g.Aa.bb(h).then(n=>{n.h&&(l.v=`${xb(a.D.config)}/hashes/${a.L.sub}/${n.h}`)})); l&&K(a.L,l,void 0,m)}else if(g.type==="characterData")(g=ti(a.L,h))&&K(a.L,g);else if(g.type==="childList"&&g.action==="added")if(g.node.nodeType===3&&a.G.tagName(g.target)==="STYLE"){a.L.g.Aa.unregister(g.target.sheet);const k={t:"SR",I:a.L.$.da(g.target)};g=a.L.g.Aa.bb(g.target.sheet).then(l=>{k.v=l});K(a.L,k,void 0,g)}else h=a.L.addedNodes(g.node),K(a.L,h),ui(a.L,g.node);else if(g.type==="childList"&&g.action==="removed")if(g.node.nodeType===3&&a.G.tagName(g.target)==="STYLE"){a.L.g.Aa.unregister(g.target.sheet); const k={t:"SR",I:a.L.$.da(g.target)};g=a.L.g.Aa.bb(g.target.sheet).then(l=>{k.v=l});K(a.L,k,void 0,g)}else(g=a.L.removedNodes(g.node))&&K(a.L,g)}});c.forEach(g=>{Xc(a.L.g.tb,g);ii(a.L.g.Da,g)});vi(a.L)}function wi(a){const b=a.B.takeRecords();a.M(b);a.B.disconnect();a.B=null;a.observe(document);a.L.dc.forEach(c=>{a.observe(c)})}function qi(a,b){const c=[];b.forEach(d=>{let e=!1;d.target.nodeType===1&&a.L.g.ia.matchesSelector(d.target,a.D.aa.rf)&&(e=!0);e||c.push(d)});return c} function ri(a,b){const c=new Map,d=new Map,e=new Map,f=new a.G.WeakMap;b=b.reduce((g,h)=>{var k=h.target;if(h.type==="attributes"){var l=h.attributeName;c.has(k)||c.set(k,{});var m=c.get(k);if(!(l in m)){var n=h.oldValue;k=k.getAttribute(l);m[l]=n!==k}g.push(h);return g}if(h.type==="characterData")return d.has(k)||d.set(k,h.oldValue!==k.nodeValue),g.push(h),g;e.has(k)||e.set(k,new Map);k=e.get(k);for(m of h.addedNodes)k.has(m)||k.set(m,{Ue:0,te:0,first:null,finished:!1}),n=k.get(m),n.first===null&& (n.first=h.addedNodes.length?"add":"remove"),xi(a,m,f),n.Ue++,g.push({type:h.type,target:h.target,action:"added",node:m});for(l of h.removedNodes)k.has(l)||(k.set(l,{Ue:0,te:0,first:null,finished:!1}),a.$.Pf.set(l,a.$.da(l))),m=k.get(l),m.first===null&&(m.first=h.addedNodes.length?"add":"remove"),xi(a,l,f),m.te++,g.push({type:h.type,target:h.target,action:"removed",node:l});return g},[]);return{Zh:c,$h:d,ai:e,zi:f,cc:b}} function xi(a,b,c){if(c.get(b)!==1){c.set(b,1);var d=a.G.childNodes(b)||[];for(let e=0;e{this.L.ya===y.NONE&&this.M(b)}),this.Ha.addEventListener("clean-iframe-re-attached",()=>{wi(this);L(this.ba,"cleanIframeReattached",!0)},{once:!0}));this.B.observe(a,{childList:!0,attributes:!0,characterData:!0,subtree:!0,attributeOldValue:!0,characterDataOldValue:!0})}ca({Zh:a,$h:b,ai:c, zi:d},e){var f=e.target;if(e.type==="attributes"){if(this.G.tagName(f).toLowerCase()==="script"||this.G.tagName(f).toLowerCase()==="iframe"&&e.attributeName==="srcdoc"||e.attributeName==="muted"||this.D.aa.ad.length>0&&this.L.g.ia.matchesSelector(f,this.D.aa.ad))return!1;b=a.get(f);e=e.attributeName;(f=b[e]&&!d.has(f))&&(b[e]=!1);return f}if(e.type==="characterData")return(d=b.get(f)&&!d.has(f))&&b.set(f,!1),d;if(d.has(f))return!1;f=c.get(f).get(e.node);if(f.finished)return!1;if(f.Ue!==f.te)return f.finished= !0;if(f.first==="add")return f.finished=!0,!1;f.te=0;return!0}};const zi=(a,b,c,d)=>{b.$e=a.dataScrubRE.length>0?I(a.dataScrubRE):[ra];b.Vf=I(a.scrubDocumentTitlePatterns);b.Bi=I(a.urlMonitorBlacklist);b.Cg=I(a.blacklistedURLs);b.nd=I(a.startImmediatePathPatterns);b.ag=I(a.waitForSessionIdPathPatterns);b.th=I(a.startWithoutParentPathPatterns);b.ld=a.dataScrubBlackList.includes("*");b.Ze=a.dataScrubBlackList.join(",");b.Vd=a.dataScrubWhiteList.join(",");b.Pb=a.encryptScrubList.join(",");b.Ud=a.dataEncryptWhiteList.join(",");b.Df=I(a.maskSensitiveWindowDialogs); b.Ig=I(a.encryptSensitiveWindowDialogs);b.$g=I(a.maskSensitiveJSErrors);a.excludeDOMList&&a.excludeDOMList.length>0&&(b.ad=a.excludeDOMList.join(","));b.Gh=I(a.xhrHookWhiteListDetails);b.Eh=I(a.xhrHookBlackListDetails);b.Hh=I(a.xhrPerformanceWhitelistDetails);b.Fh=I(a.xhrHookWhiteList);b.Dh=I(a.xhrHookBlackList);b.Ch=I(a.xhrErrorBlacklist);b.af=a.dataScrubXHRRegExes.reduce((f,g)=>{const h="d"+(g.f.includes("g")?g.f:g.f+"g");(g=Xa(g.p,h))&&f.push(g);return f},[]);c=I(a.excludeRageRE);b.Kg=c.length? c:[ta];b.ef=a.excludeRageCSS.join(",");b.Sf=I(a.replaceURLRegExes.map(f=>({...f,f:f.f.includes("g")?f.f:f.f+"g"})));c=sa.concat(a.urlTransforms);var e=[];for(let f=0;ff.toLowerCase()));b.zh=I(a.whitelistedURLs);d=d.Array.from(new window.Set(a.imageTrackingIgnoreList.concat(yd.imageTrackingIgnoreList)));b.sf=d.join(",");d=[];for(c=0;c{a={...a};if(a.ingestURLProvider)try{const {medium:d,path:e}=a.ingestURLProvider;if(d==="window")var b=E(window,e,void 0);else if(d==="localStorage"||d==="sessionStorage")b=window[d].getItem(e);typeof b==="string"&&b.length>0&&(a.ingestBaseURL=b)}catch(d){}if(typeof a.ingestBaseURL==="string"&&a.ingestBaseURL.length>0)try{var c=new URL(a.ingestBaseURL,window.location.origin);a.ingestBaseURL=c.href.replace(/\/+$/,"")}catch(d){}b=new window.Set(a.excludeXHRHeaderRegEx.map(d=>d.p+"|"+d.f)); c=Fa(yd.excludeXHRHeaderRegEx);for(let d=0;de.map(f=>[d,f]));for(const [,d]of a){const {surveyUrl:e,eventDetails:f}=d;({i:a}=f);b.addEventListener(`event-engine:${a}`,()=>this.load(e));this.B.push(f)}}load(a){a=new URL(a,window.location.href);a.searchParams.set("interface-handle",this.K());const b=document.createElement("script");b.async=!0;b.src=a.href;document.head.appendChild(b)}};function Ci(a){window.addEventListener("message",async b=>{if((b=b.data)&&typeof b=="object"&&b.namespace==="quantum_flutter"&&b.messageId!==void 0){var {method:c,url:d,body:e,messageId:f,response:g,error:h}=b;a.B.size>50&&L(a.ba,"FlutterMessageHandler: high message count",{size:a.B.size},"warn");if(g){if(e&&!e.ack&&L(a.ba,"FlutterMessageHandler:missing ack",{method:c,url:d},"error"),b=a.B.get(f))h?b.reject(h):b.resolve(e),a.B.delete(f)}else{let k=void 0,l=void 0;try{l=await Di(a,{method:c,url:d, body:e,context:{scope:b.scope,view:b.view}})}catch(m){k=m}l===void 0&&k===void 0||window.postMessage({messageId:f,method:c,url:d,body:l,response:!0,error:k,namespace:"quantum_flutter_web",scope:a.sub},"*")}}},!1)} async function Di(a,b){var c=b.method,d=b.url;const e=b.body;b=b.context;if(typeof c!=="string"||typeof d!=="string")throw Error("FlutterMessageHandler:400");d=yh(d);c=E(a.Ma,[c.toUpperCase(),...d],null);if(c===null)throw Error("FlutterMessageHandler:404");d[d.length-1]==="child-ready"&&(a.Sd++,a.Jf.resolve());return await c(e,b)} class Ei{constructor(a){this.ba=a.ba;this.sub=a.sub;this.Ma=a.Ma;this.Hb=a.Hb||5;this.Kb=a.Kb||500;this.B=new Map;Ci(this);this.Jf=new yb;this.Sd=0}Ga({method:a,url:b,body:c}){if(!this.Sd)return Promise.resolve();const d=Ia(),e=new yb;this.B.set(d,e);const f=(g=0)=>{try{window.postMessage({messageId:d,method:a,url:b,body:c,namespace:"quantum_flutter_web",scope:this.sub},"*")}catch(h){L(this.ba,"FlutterMessageHandler: unable to post message",{message:h.message,url:b,method:a},"error")}setTimeout(()=> {if(this.B.get(d)){const h=g+1;h>this.Hb?(e.reject(Error("FlutterMessageHandler:timeout")),this.B.delete(d)):f(h)}},this.Kb)};f();return e.promise}disconnect(){this.B.clear();this.Sd=0;this.Jf=new yb}}var Fi=new Set("b T rn a L nsc C F B".split(" "));const Gi={ack:!0}; class Hi{constructor(a){this.L=a}sc(){return{GET:{v1:{connect:()=>({...Gi,config:this.L.g.G.stringify({flutter:this.L.Xa,exchange_rates:this.L.Td,server_config:{ingestBaseURL:this.L.D.config.ingestBaseURL}}),enabled:Ii(this.L)}),disconnect:()=>{this.L.g.Xa.disconnect();return Gi}}},POST:{v1:{"child-ready":()=>{const a=async()=>{await this.L.g.bd.Ga({method:"POST",url:"/v1/set-context",body:this.L.getContext()})};this.L.ha&&this.L.Ba?a():this.L.Ha.addEventListener("start-event",a,{once:!0});return Gi}, event:async(a,b)=>{b=b.view;var c=this.L.g.Xa.hc.get(b||0);if(!c||!c.canvas)return L(this.L.ba,"flutter-missing-view",b,"error"),Gi;b=c.canvas;c=c.da;const d=a.t;if(!Fi.has(d)||!c)return Gi;if(d==="L")return b=Ng(this.L.g.rd,b.parentElement),b+=`>div:last-child:nth-child(1):only-child>\u00a7>${a.ev}`,a.I=[c,a.I],a.ev=b,K(this.L,{t:"b",I:a.I,v:a.v}),K(this.L,a),Gi;if(d==="T"||d==="nsc"||d==="C"||d==="F"||d==="B")a.I=[c,a.I];d==="rn"&&(a.c=[c,a.c]);d==="a"&&(a.p=a.p.startsWith("<")?a.p:[c,a.p],b=a.j? a.j[0].E:null)&&(b=this.L.g.G.stringify(b),c=await he(this.L.pa,b),a.j[0].E=c||O(b));K(this.L,a);return Gi},oob:(a,b)=>{var c=a.k;a=a.v;if(c!==null&&a!==null)switch(c){case "s":b=a.delta;a=a.isV;b&&(this.L.Lb+=a?b/this.L.Mb:b/this.L.jc,V(this.L,"s",this.L.Lb));break;case "qc":b=b.view;c=this.L.g.Xa.hc.get(b||0);if(!c||!c.canvas){L(this.L.ba,"flutter-missing-view",b,"error");break}b=c.canvas;c=Ng(this.L.g.rd,b.parentElement);c+=`>div:last-child:nth-child(1):only-child>\u00a7>${a.ev}`;a.ev=c;(b=Ji(this.L, b.parentElement)||"")&&(b+=`>div S# ${a.P}`);a.P=b;++this.L.ec;V(this.L,"c",this.L.ec);Ki(this.L);V(this.L,"qc",a);break;case "k":if(a=a.charsTyped)this.L.Zb+=a,V(this.L,"k",this.L.Zb)}return Gi},encrypt:async a=>{if(!this.L.pa||!this.L.pa.supports||!this.L.zb)throw Error("FlutterHandler:encryption-unavailable");var b;a=(b=a.v)!=null?b:"";b=await he(this.L.pa,a);if(!b&&a)throw Error("FlutterHandler:encryption-unavailable");return{v:b,...Gi}},"trigger-event":async a=>{const {id:b,v:c,f:d,j:e}=a;if(a= e)a=this.L.g.G.Ra(a),a={hash:await Ub(this.L.g.G.stringify(a,cc)),value:a};const f=this.L.R.Qb[b]||{id:b,flags:d,ka:this.L.g.Z.W()};ng(this.L.R,f,c,a);return Gi},stop:async a=>{if(this.L.ya!==y.NONE)return Gi;a=a.endSession;await Li(this.L,!1);a&&(Mi(this.L),this.L.we=!0,this.L.ha=void 0);return Gi},start:async()=>{if(this.L.ya===y.NONE)return Gi;await Li(this.L,!0);return Gi}}}}}};function Ni(a){let b=[];a.D.config.flutterViews.forEach(c=>{const {root:d,attr:e,render:f}=c;a.M.querySelectorAll(document,d).forEach(g=>{var h=a.find(g);if(!h||!h[1].canvas){h=a.M.querySelector(g,f);var k=g.getAttribute(e);a.hc.set(+k,{root:g,id:k,canvas:h});h&&b.push(k)}})});return b.length?b:null}function Oi(a,b){for(const {root:c}of a.hc.values())if(c.contains(b))return!0;return!1} async function Pi(a,b,c){if(c){var d=a.hc.get(+b),e=d.canvas;if(b=a.L.$.da(e)){d.da=a.L.da();d={1:{n:"DIV",C:[],sr:{b:{C:[c],S:[{v:"div{position:absolute;pointer-events:none;z-index:0;width:calc(var(--w)*1px);height:calc(var(--h)*1px);}.cl{pointer-events:all;}",i:"flutter-injected"}],q:d.da}},a:[{2:{n:"style",v:e.style.cssText}}],q:a.L.da()}};if(e=c.E)delete c.E,(a=await he(a.L.pa,a.G.stringify(e)))&&(d.E=a);return{t:"%",I:b,j:d}}}} class Qi{constructor(a,b,c,d,e,f){this.D=a;this.M=b;this.G=c;this.B=e;this.L=f;this.hc=new Map;this.K=this.ready=!1;d.addEventListener("html-snapshot",this.ea.bind(this));d.addEventListener("mutations-observed",this.ca.bind(this))}find(a){for(const b of this.hc.entries())if(b[1].root===a)return b;return null}async ea(){this.K||(this.K=!0,await this.B.Jf.promise,this.L.ya!==y.NONE?this.K=!1:(this.ready=!0,this.B.Ga({method:"GET",url:"/v1/snapshot",body:{}}).then(async({html:a})=>{for(const b in a){const c= await Pi(this,b,a[b]);c&&K(this.L,c)}}).catch(ua).finally(()=>{this.K=!1})))}ca(a){if(this.B.Sd&&a.some(c=>c.addedNodes.length>0)){var b=Ni(this);b&&this.ready&&this.B.Ga({method:"GET",url:"/v1/snapshot",body:{}}).then(async({html:c})=>{for(const d of b){const e=await Pi(this,d,c[d]);e&&K(this.L,e)}}).catch(ua)}}disconnect(){this.hc.clear();this.B.disconnect()}};function Uc(a,b){a=a.B(b);a.Ac||(a.Ac={});return a.Ac}function Ri(a,b,c=!1){var d,e=a.$.get(b);e&&(c?d=e.Ac:e.Ac&&e.Ac.ri&&a.K.delete(b),d?a.$.set(b,{Ac:d}):a.$.delete(b));if(d=a.G.childNodes(b))for(e=0;e0||c[1].length===0&&b[1].length===0?(c[0]=c[0].concat(b[0]),c[1]=c[1].concat(b[1])):a.B.push(b)}}async function Vi(a,b){a.M=!0;const c=a.B.shift();c[1].length?await b(c):b(c);a.B.length>0?setTimeout(()=>Vi(a,b),0):(a.M=!1,a.La("done",!0))}function Wi(a,b){a.M||Vi(a,b)}function Xi(a,b){a.K.done&&a.K.done.push(b)}function Yi(a,b){a.K.done&&(a.K.done=a.K.done.filter(c=>b!==c))} class Zi{constructor(){this.B=[];this.M=!1;this.K={done:[]}}La(a,b){this.K[a].forEach(c=>{c(b)})}} function $a(a,b){var c=window.location.href.indexOf("about:srcdoc")>-1;if(a.ta.timing&&!c){let d=b.p={};const e=$i(a);if(e){c=aj(a)?a.g.Z.yb:e.navigationStart;b.pto=B(c);for(const g in a.qa)if(a.qa.hasOwnProperty(g)){d[a.qa[g]]=null;try{let h=e[g];typeof h==="number"&&(h>0?(aj(a)||(h=Math.max(h-c,0)),h<14E6?d[a.qa[g]]=Math.max(B(h),0):a.xa("hit_network_timing_offset",{url:encodeURIComponent(b.url),value:h,key:g})):a.Bc.push(g))}catch(h){}}let f=!1;a.Yg.forEach((g,h)=>{h!==0&&(h=d[a.qa[a.Yg[h-1]]]|| 0,g=d[a.qa[g]],g!==null&&h!==null&&g{g=g.getEntries();for(let k=0;k {g=g.getEntries();for(let k=0;k{if(g||cd(a,b,h))return g;h=e.transform(b,h);return h===null?g:h.value},null);f||(f=`${c}x${d}`);return`${b.nodeName}[${f}]`}function Wc(a,b,c="",d=0,e=a.g.Z.W()){V(a,"E",{i:b,f:d,v:c,t:e})} function cd(a,b,c){for(let d=0;da.D.config.maxNumOOBEventsPerHit)){a.Sb=!0;var d;b in a.ca?d=a.ca.E:a.ca.E=d=[];d.push(c);wd(a.oa,c.i,c);K(a,{...c,t:"oe"},!0);b=a.g.nc;d={id:c.i,value:c.v,ts:c.t,i:c.i,v:c.v,ev:c.ev};if(!b.disabled&&b.B.config.mapping){var e=b.B.config.mapping;for(const [g,h]of Object.entries(e))try{if(d.i.toString()!==g)continue;var f=b.J.Jg.includes(d.i);e={xdm:{producedBy:"quantum-metric"},type:`qm.${f?"error":"event"}`};$h(b,{object:e.xdm,hh:h,handle:g,event:d}); Uh(b,e,g,d.value,f)}catch(k){console.warn("Could not map event:",g)}}wg(a,c)}}else{switch(b){case "qc":case "x":f=[];b in a.ca?f=a.ca[b]:a.ca[b]=f=[];f.push(c);break;case "mt":f={};b in a.ca?f=a.ca[b]:a.ca[b]=f={};Object.assign(f,c);K(a,{v:c,t:"mt"},!0);break;case "qr":f=[];b in a.ca?f=a.ca[b]:a.ca[b]=f=[];f.push(...c);K(a,{v:c,t:"qr"},!0);break;default:a.ca[b]=c}a.Sb=!0}}function Y(a,b){return a.g.G.nodeName(b).toLowerCase()}function Rg(a,b){return(b=a.g.G.parentNode(b))?a.Za(b):!1} function Sg(a,b){b=a.g.G.parentNode(b);if(!b||!a.D.aa.Pb)return!1;b.nodeType===11&&(b=b.host);return a.Wb(b)} function mi(a,b){let c=0,d=0,e=0,f=0;if(b)try{b==document?a.yg?(c=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,e=document.documentElement.scrollWidth||document.body.scrollWidth,f=document.documentElement.scrollHeight||document.body.scrollHeight):(c=document.body.scrollLeft,d=document.body.scrollTop,e=document.body.scrollWidth,f=document.body.scrollHeight):(c=b.scrollLeft,d=b.scrollTop,e=b.scrollWidth,f=b.scrollHeight)}catch(g){}return[c, d,e,f]} function si(a,b,c,d){var e=a.$.da(b);if(e===void 0)return null;let f={t:"T",I:e,n:c,v:d};var g=c.toLowerCase();e=!1;if(cd(a,b,c))return null;(g=g=="data-select-value"||g=="placeholder"||g=="value"||g=="label")&&a.Za(b)&&(d=O(d),e=!0);if(g&&!e&&a.D.aa.Pb&&!hj(a,b)&&a.g.ia.matchesSelector(b,`${a.D.aa.Pb},input,select`)){const h=d;e=he(a.pa,h).then(k=>{f.v=k||O(h)}).catch(ua);d=" ";a.ea.push(e);e=!0}if(g=(new $c(a.D.aa.Ab,a)).transform(b,f.n))f.n=g.name,d=e?d:g.value;if(!e)for(e=0;e{if(l===c){var m=d;l=he(a.pa,m).then(n=>{f.v=n||O(m)}).catch(ua);a.ea.push(l)}})}f.v=d;return f}function ti(a,b){var c=a.$.da(b);if(c===void 0)return null;var d=b.data,e=a.g.G.parentNode(b),f={t:"t",I:c,v:d};e&&(c=ij(a,e),c==="scrub"&&(d=O(d)),c==="encrypt"&&(d=he(a.pa,b.data).then(g=>{g&&(f.etn="1");f.v=g||O(b.data)}).catch(ua),a.ea.push(d),d=" "));f.v=d;return f} function ui(a,b){if(b&&b.nodeType===1){var c=Y(a,b);if(c=="option"&&b.selected){c=a.$.da(b);if(c===void 0)return;K(a,{t:"_",I:c})}else if(c=="input"&&b.checked){c=a.$.da(b);if(c===void 0)return;a.$.B(b).fd=!0;K(a,{t:"_",I:c})}if(b=a.g.G.children(b))for(c=0;c{var b=a.R;qg(b,"dom",b.J.g.Z.W());a.vc=null},a.D.config.domChangedThrottleDuration))} function Ii(a){var b=!0;if(![a.B.va].includes(a.K))return!0;var c=a.ra.get(a.D.config.enabledCookie);c?c==="false"&&(b=!1):a.D.config.percentSampling<100&&(c=!0,a.D.config.percentSampling<100&&(c=a.g.Z.W()%100 ";function m(){for(var r=0,q=0,w=f.length;q{a.Bb=null;let c=b-a.Rc;c>6E4&&(c=6E4);a.Fc+=c;V(a,"e",B(a.Fc/1E3));a.Rc=b;lj(a);mj(a)},500,a.g.Z.W()):a.ya===y.NONE&&(a.Bb=1,nj(a,{method:"POST",url:"/v1/engaged",body:{}}).finally(()=>{a.Bb=setTimeout(()=>{a.Bb=null},500)})):a.Rc=a.Jb)} async function Li(a,b){[a.B.va].includes(a.K)?(a.ra.set({[a.D.config.enabledCookie]:b}),b?(await a.stop(y.NONE),await fj(a,gb(a.M),!1),oj(a,{method:"POST",url:"/v1/reset",body:{}})):a.stop(y.Ne)):nj(a,{method:"POST",url:"/v1/enable-session",body:{enabled:b}})}function Mi(a){a.ra.jb({[a.D.config.sessionCookieName]:""});a.fa.clear()} function pj(a,b,c){const d=a.xd[b];var e=a.R.Xe.has(b);const f=a.uf>=1E3;if(e||!f&&d){var g=c.map(k=>k.bb());if(e){const k=a.g.G.stringify;vg(a.R,{method:b,args:c.map(l=>k(l.ph()))})}var h=!1;if(d&&(e=d.mi,d.replace.forEach(({rb:k,ti:l})=>{c.forEach(m=>{m.Gb(k,l)&&(h=!0)})}),!h))a:for(const k of e)for(const l of c)if(l.Gb(k,"")){h=!0;break a}h&&!f&&(a.uf++,K(a,{t:"co",m:b,a:g}))}} function qj(a){var b=a.D.config.console||{};a.xd={};Object.entries(b).forEach(([c,d=[]])=>{const e=[],f=[];d.forEach(g=>{if(g.re){var h=g.re.f||"g";h=h.includes("g")?h:h+"g";var k=g.re.p;g.rep?(h=Xa(k,h))&&e.push({rb:h,ti:g.rep}):Xa(k,h)&&f.push({p:k,f:h})}});d=I(f);if(e.length||d.length)a.xd[c]={replace:e,mi:d}});a.uf=0;b=Ed.filter(c=>a.xd[c]||a.R.Xe.has(c));a.g.console.ca=new Set(b)}function rj(a){const b=a.g.G.stringify({ekey:ie(a.pa),kid:a.pa.le||""});V(a,"ekey",{ekey:b})} function sj(a){var b=a.ca.form;b||(a.ca.form=b={});a.Sb=!0;return b}function dj(a,b){if(!b.hasOwnProperty("d")){const c=b.t=="s",d=a.g.Z.W();c?(b.d=d,a.Tc=d):a.Tc>0?(b.d=d-a.Tc,a.Tc=d):b.d=1}}async function ej(a,b,c=a.ea){!a.Ub||b.length===0&&c.length===0||(Ui(a.Xc,[[...b],[...c]]),b.length=0,c.length=0,Wi(a.Xc,async function(d){const e=d[0];d=d[1];d.length&&await Promise.all(d);e.forEach(f=>tj(a,f))}))} function tj(a,b){if(a.ub){var c=b.t=="s";dj(a,b);a.zd&&(b.ekey=ie(a.pa),b.kid=a.pa.le||"",a.zd=!1);c?a.ua.unshift(b):a.ua.push(b)}} function uj(a,b){a.uc||(a.uc=vj(a));var c={G:a.g.G,ma:a.uc,oe:a.D.aa.ld,He:{[1]:(f,g)=>{if(a.ed(f)){var h=f.localName;!a.customElements.has(h)&&window.customElements.get(h)&&(a.customElements.add(h),K(a,{t:"CE",n:h}))}a.$.B(f).Ge=!0;switch(a.g.G.tagName(f).toUpperCase()){case "INPUT":if(g=f.type.toLowerCase(),g==="checkbox"||g==="radio")a.$.B(f).fd=f.checked;case "SELECT":case "TEXTAREA":wj(a,f);break;case "IMG":if(!(!a.D.config.reportFailedImages||a.D.aa.sf&&a.g.ia.matchesSelector(f,a.D.aa.sf))){g= a.g.Rg;var k=f.ownerDocument.location.href;h=f.complete;var l=f.srcset?f.srcset.split(", "):[];const m=l.length===1?l[0].split(" ")[0]:"";l=f.src!==k;k=!!f.src||m!==k;h=(f.src||f.srcset)&&l&&k&&h;f.removeEventListener("error",g.B);f.removeEventListener("load",g.Ec);h&&dd(g,f);g.J.g.G.addEventListener(f,"error",g.B);g.J.g.G.addEventListener(f,"load",g.Ec)}break;case "IFRAME":f=a.$.B(f),f.Cc?g.Cc=f.Cc.toString():g.Cc=null}},[11]:f=>{xj(a,f.host);Sc(a.g.tb,f.host)}},ee:a.cb.bind(a),wb:a.D.aa.Qg,Ob:a.Ob.bind(a), Nb:f=>!!a.zb&&a.Nb(f),ze:a.D.config.stripHTMLComments,ye:J(a.Ea,a.D.aa.Vf),url:a.Ea,supports:a.g.supports,Db:a.$.B.bind(a.$),da:a.da};c=new bh(c);c.mode=[ij(a,b)];const {sb:d,Ib:e}={sb:dh(b,c),Ib:c.Ib};b=c.B.length?he(a.pa,a.g.G.stringify(c.B)):null;c.De.forEach(({node:f,sb:g})=>{f.nodeType===11?(f=(a.g.G.adoptedStyleSheets(f)||[]).map(h=>Zb(a.g.Aa,h)),Promise.all(f).then(h=>{g.S=h})):(a.g.G.tagName(f)==="STYLE"&&Zb(a.g.Aa,f.sheet).then(h=>{g.S=h;g.C=[]}),a.g.G.tagName(f)==="LINK"&&f.getAttribute("href")&& f.rel.toLowerCase().includes("stylesheet")&&Zb(a.g.Aa,f).then(h=>{if(h.v!==""){for(let k=0;k{d.E=f[0]});return{sb:d,Ib:e,Og:b}}function yj(a,b){a=a.g.G.parentNode(b);if(!a)return null;if(a.nodeType===1)return a;if(a.nodeType===11)return a.host} function ij(a,b){if(!b)return null;if(b.nodeType===3||b.nodeType===8)b=yj(a,b);const {Za:c,Wb:d}=a.$.B(b);return c!==null&&c!==void 0||d!==null&&d!==void 0?c?"scrub":d&&c===!1?"encrypt":d?ij(a,yj(a,b))==="scrub"?"scrub":"encrypt":null:a.D.aa.ld?"scrub":ij(a,yj(a,b))}function zj(a,b,c,d){(b=si(a,b,c,d))&&K(a,b)}function hj(a,b){return a.D.aa.Ud&&a.g.ia.matchesSelector(b,a.D.aa.Ud)?!0:!1}function Aj(a){const b=a.D.config.sessionTimeoutMinutes*60*1E3;return new a.g.G.Date(a.g.Z.W()+b)} function Bj(a,b){if(b){const c=Aj(a);a.D.config.sessionPersistenceMediums.forEach(d=>{try{switch(d){case "cookie":a.ra.set({[a.D.config.sessionCookieName]:b,expires:c.toUTCString()});break;default:const f=a.fa.get("s");f&&f!==b&&a.fa.clear();a.fa.set("s",b);var e=a.fa;e.B.exp=c.getTime();Eg(e,"exp")}}catch(f){}})}}function Z(a,b){try{++a.Pc,b(),--a.Pc}catch(c){Cj(a,c)}} function lj(a){if([a.B.va].includes(a.K)&&a.eg===null){a.eg=setTimeout(()=>{a.eg=null},1E3);a.Ke&&a.g.G.clearTimeout(a.Ke);var b=a.D.config.sessionTimeoutMinutes*60*1E3;Bj(a,a.ha);a.Ke=a.g.G.setTimeout(function(){Z(a,function(){a.Gc=!0;a.Tb&&a.Tb.disconnect();a.Kc&&clearTimeout(a.Kc);a.Oa&&clearTimeout(a.Oa)})},b)}}function jj(a){[a.B.lc].includes(a.K)?nj(a,{method:"POST",url:"/v1/new-session",body:{}}):[a.B.td,a.B.vd].includes(a.K)||Cd(a)} function kj(a){if([a.B.va].includes(a.K)){if(a.D.config.maxSessionDuration>0){a.Hd!==null&&(wd(a.oa,"max-session-duration-exceeded",{sessionID:a.Hd}),a.Hd=null);const {ni:b,oi:c}=Dj(a);if(b>a.D.config.maxSessionDuration)return a.Hd=a.ha,gj(a),jj(a),!0;a.Oa&&(clearTimeout(a.Oa),a.Oa=null);a.Oa=setTimeout(()=>{kj(a)},c)}return!1}} function mj(a){[,e]=a.Cd;var b=document.documentElement.scrollHeight;if(b!=0){var c=e+a.Mb;c>a.Uc&&(a.Uc=c,V(a,"sd",a.Uc));var d=a.g.Z.W();c=d-a.xc;if(c>1E3){a.xc=d;d=Math.floor(e/b*10);var e=Math.floor((e+a.Mb)/b*10);e==10&&(e=9);for(b=d;b<=e&&!(a.Eb[b]+=c,b<0||b>10);b++);a.Eb.totalTime+=c;Ej(a)}}} async function nj(a,b){const {method:c,url:d}=b;if(!a.Re&&([y.ud,y.NONE].includes(a.ya)||![a.B.td,a.B.vd].includes(a.K))){if([a.B.td].includes(a.K))return a.g.Nd.Ga(b).catch(e=>{L(a.ba,"sdkcomm: (android) issue sending message to parent",{message:e.message,method:c,url:d},"error")});if([a.B.vd].includes(a.K))return a.g.ie.Ga(b).catch(e=>{L(a.ba,"sdkcomm: (ios) issue sending message to parent",{message:e.message,method:c,url:d},"error")});if([a.B.lc].includes(a.K)){const e=window.opener!==null&&window!== window.opener?window.opener:a.g.G.M(window);return a.g.zc.Ga(e,b).catch(f=>{L(a.ba,"sdkcomm: (iframe) issue sending message to parent",{message:f.message,method:c,url:d},"error")})}L(a.ba,"sdkcomm: unable to send message to unknown parent context",{method:c,url:d,mode:a.K},"error")}} async function fj(a,b,c=!0,d=!0){a.M.Ua!==b?jb(a.M,b):!a.Ie&&a.Bg&&(a.Ie=!0,ej(a,a.O,a.ea),a.Xc.M&&await new Promise(e=>{const f=()=>{Yi(a.Xc,f);e()};Xi(a.Xc,f)}),Fj(a),c&&(a.Tb&&a.Tb.disconnect(),a.Lc&&a.Lc(),ki(a.g.Da),a.$a||a.g.console.flush(),Ej(a,!0),Gj(a),gj(a)),Ri(a.$,document.documentElement,!0),a.uc=null,a.ua=[],a.O.length=0,a.O=[],a.Jc.length=0,a.Ic.length=0,a.ca={},a.Sb=!1,vh(a.Oc),vh(a.Dd),a.Ba=void 0,[a.B.va].includes(a.K)&&(a.ha=void 0,a.za=void 0),a.Yb=!1,a.Id=void 0,a.Ub=null,a.Hc= [],a.ec=0,a.xh=0,a.Vc=0,a.Lb=0,a.Zb=0,a.Cb&&(clearTimeout(a.Cb),a.Cb=null),a.vc&&(clearTimeout(a.vc),a.vc=null),a.Oa&&(clearTimeout(a.Oa),a.Oa=null),a.Nc&&(clearTimeout(a.Nc),a.Nc=null),a.Tc=0,a.mg=0,a.Cd=[0,0],a.Rb=null,a.Gc=!1,a.Jb=void 0,a.$a=void 0,a.Wc=void 0,a.Rc=0,a.Sc=null,a.Bb&&clearTimeout(a.Bb),a.Bb=null,a.Fc=0,Hj(a),a.Nf=0,a.la.B=0,a.Wg=0,a.Zf=0,a.Bc=[],Ij(a),Yc(a.g.tb),li(a.g.Da),a.g.cc.K=0,a.da=Ea(),c=null,a.R!==null&&(c=a.R.Ia,a.R.Ve()),await Jj(a,b,d,c),a.Ie=!1)} function Kj(a,b,c,d){Ki(a);const e=a.$.da(b);e!==void 0&&(a.Sc=b,K(a,{t:"O",I:e,x:c,y:d}))}function Lj(a,b,c,d){Ki(a);b=a.$.da(b);b!==void 0&&(a.Sc=null,K(a,{t:"X",I:b,x:c,y:d}))}function Mj(a,b,c){return J(c,a.D.aa.Kg)||a.D.aa.ef&&a.g.ia.matchesSelector(b,a.D.aa.ef)?!1:!0}function Nj(a,b){return a.replace(b,function(c){let d="";for(let e=0;ePj(a,k,c,d)).join(" ").trim();if(f!=="")return f}f=a.g.ia.matchesSelector(b,a.D.aa.Ze)||a.g.ia.matchesSelector(b,a.D.aa.Pb);e=e=="input"||e=="textarea";const g=hj(a,b)||a.D.aa.Vd&&a.g.ia.matchesSelector(b,a.D.aa.Vd);if((f||e)&&!g)return Vc(a,b,c,d);f=b;for(var h of a.D.config.clickTextMapping){const {target:k,parent:l}=h;if(!a.g.ia.matchesSelector(b,k))continue;e=a.g.ia.closest(b, l);if(e!==null){f=e;break}}h=Qg(a.Sh,f);return h.length?h:Vc(a,b,c,d)}function gj(a){a.Qe&&Qj(a)} function Rj(a,b,c,d){if(b&&!Oi(a.g.Xa,b)){Ki(a);++a.ec;V(a,"c",a.ec);tg(a.R,b);var e=a.$.da(b);if(Y(a,b)=="input"){var f=a.$.B(b);!!f.fd!=b.checked&&(zj(a,b,"checked",b.checked),f.fd=b.checked)}var g=Vc(a,b,c,d);f=Pj(a,b,c,d);K(a,{t:"b",I:a.Na?e:null,v:f},!0);var h=a.g.Z.W(),k=!1;a.$b==b&&h-a.Qc<2E3&&a.g.cc.K=3E4||c>0&&b)for(a.Xf=a.xc,b=a.Eb.totalTime,c=0;c<10;c++)V(a,"sd"+c,B(a.Eb[c]/b*100))} function bk(a,b,c=!1){c&&Ki(a);var d;[c,d]=mi(a,b);if(b===document){b="";var e=Xj(a,c,d,a.Cd);e&&(a.Lb+=e,V(a,"s",a.Lb));a.Cd=[c,d];if(a.je&&(e=c,a.je&&e>0)){var f=Yj();a.Lg==f?a.Sg!=e&&a.jc==f&&a.Jh++==5&&Wc(a,-6,Zj(a,a.Ea)):a.Lg=f;a.Sg=e}mj(a)}else if(b=a.$.da(b),b===void 0)return;K(a,{t:"S",I:b,x:c,y:d})} function ck(a,b){const c=b.pageX,d=b.pageY,e=b.clientX;b=b.clientY;const f=a.g.Z.W();if(f-a.Fg<100)a.vf&&clearTimeout(a.vf),a.vf=setTimeout(function(){K(a,{t:"m",x:c,y:d})},100);else{var g=Xj(a,e,b,a.Hg);g&&(a.Vc+=g,V(a,"m",a.Vc));a.Hg=[e,b];a.Fg=f;K(a,{t:"m",x:c,y:d})}} async function dk(a,b){if(b.type!=="hidden"){if(!a.Qa(b)){var c=a.Ya(b);c.state===1&&(c.state=2,++c.Mg,ek(a,b,c));!b.value&&c.filled?(c.filled=!1,ek(a,b,c)):b.value&&!c.filled&&(c.filled=!0,ek(a,b,c));if(c=fk(a,b)){c=a.Ya(c);var d=c.Gg;c.Gg=b;d!=b&&(d&&ek(a,d,a.Ya(d)),ek(a,b,a.Ya(b)))}}c=a.$.da(b);if(c!==void 0&&a.Na){c={t:"C",I:c};if(b.getAttribute("type")==="checkbox"||b.getAttribute("type")==="radio")c.v=b.checked.toString();else{d=gk(b);if(a.Qa(b)&&b.value.length>0){d="****";var e=!0}else[d,e]= hk(d,a.Za(b))||[];e||hj(a,b)?c.v=d:a.zb?((b=await a.pa.encrypt(d))&&b!=="*"&&(c.qenc=b),c.v=O(d)):ik(a,b)?c.v=O(d):c.v=d}K(a,c)}}} function jk(a,b){if(typeof b.selectionStart=="number"&&typeof b.selectionEnd=="number")return[b.selectionStart,b.selectionEnd-b.selectionStart];var c=document.selection.createRange();if(!c||a.g.G.parentNode(c)&&a.g.G.parentNode(c)!=b)return[0,0];a=b.value.length;var d=b.createTextRange();d.moveToBookmark(c.getBookmark());c=b.createTextRange();c.collapse(!1);if(d.compareEndPoints("StartToEnd",c)>-1)return[a,0];b=b.value.replace(/\r\n/g,"\n");var e=-d.moveStart("character",-a);e+=b.slice(0,e).split("\n").length- 1;if(d.compareEndPoints("EndToEnd",c)>-1)return[e,a-e];a=-d.moveEnd("character",-a);a+=b.slice(0,a).split("\n").length-1;return[e,a-e]}function kk(a,b,c){if(!a.Qa(b)){var d=a.$.da(b);if(d!==void 0)try{c||(c=jk(a,b)),a.$.B(b).Rf=c,K(a,{t:"*",I:d,s:c[0],l:c[1]})}catch(e){}}}function lk(a,b){Ki(a);if(!a.Qa(b)){var c=Y(a,b);if(c=="input"||c=="textarea")if(c=a.$.B(b),c.xb!=b.value&&(c.xb=b.value,dk(a,b)),c.da!==void 0)try{var d=jk(a,b);c.Rf&&c.Rf[0]==d[0]&&c.Rf[1]==d[1]||kk(a,b,d)}catch(e){}}} function mk(a,b){var c=a.Ya(b);c.state=1;c.zf=a.g.Z.W();c.eh=!1;a.Rb=b;setTimeout(function(){Sj(a,b)},10)}function nk(a,b){a.Ya(b).state=0;a.Rb==b&&(a.Rb=null);var c=b.value;if(!a.Qa(b)&&a.ah.test(c)&&!a.ng&&!a.Za(b)){a.ng=!0;const d=ok(a,b),e=a.zb&&d?256:0;(e?a.pa.encrypt(c):Promise.resolve(ik(a,b)?O(c):c)).then(f=>Wc(a,-8,f,e)).catch(ua)}setTimeout(function(){Sj(a,b)},1E3);ug(a.R,b);Tj(a,b)} function gk(a){const b=a.getAttribute("type");a=b=="checkbox"||b=="radio"?a.checked.toString():a.value;return a==null?"":a}function Sj(a,b){if(!Oi(a.g.Xa,b)){var c=a.$.B(b),d=gk(b);d!=c.xb&&(c.xb=d,dk(a,b))}} function pk(a){if(!a.jg){function e(f){return function(g){if(g){g=g.toString().replace(/"|\r?\n|\r|\t/g,"").replace(a.Ih,"").trim();for(var h=0;h0&&(d=a.g.G.textContent(d[0])||a.g.G.innerText(d[0]))&&(d=d.trim(),d.length<30))return d}if((d=b.getAttribute("title"))||(d=b.getAttribute("name")))return d;if(d=b.getAttribute("placeholder"))return"'"+d+"'";if(Y(a,b)=="form"&&b.querySelector){var e=a.g.G.ea(b,"input[type=submit]");e&&(d=e.value);if(d)return"|"+d}if(d=c)return"#"+d;if(d= b.getAttribute("class"))return"."+d;if(d=b.getAttribute("action"))return"!"+d}return(d=a.cb(b))?"@"+d:""}function fk(a,b){for(b=a.g.G.parentNode(b);b;){if(b.nodeName.toLowerCase()=="form"||b==document)return b;b=a.g.G.parentNode(b)}return null}function ok(a,b){return ij(a,b)==="encrypt"?!0:a.Nb(b)}function Tj(a,b){var c=a.Ya(b);if(!c.eh){var d=a.g.Z.W();c.Ng=(c.Ng||0)+(d-c.zf);ek(a,b,c);c.state==1?c.zf=d:c.eh=!0}} async function ek(a,b,c){if(!a.Qa(b)&&!a.Za(b)){var d=fk(a,b);if(d){var e=a.Ya(d);e.Zg||uk(a,d,e);d={c:c.Mg||0,"?":!!c.filled,d:b==e.Gg,t:c.Ng||0};var f=b.value||"";f&&f.length>100&&(f=f.substring(0,99));if(a.zb){b=await a.pa.encrypt(f);const g=await ge(a.pa,f);b&&b!=="*"&&(d.qenc=b);d.v=g||O(f)}else ik(a,b)?d.v=O(f):d.v=f;a.D.config.disableFormSubmitFields||c.xb&&c.xb==d.v||(b=sj(a),(f=b.f)||(b.f=f={}),(b=f[e.id])||(f[e.id]=b={}),b[c.name]=d,c.xb=d.v);a=a.R;a.yf=c;qg(a,"form",a.J.g.Z.W())}}} function uk(a,b,c){c.id=++a.mg;if(!a.D.config.disableFormSubmitFields){var d=sj(a),e=d.F;e||(d.F=e=[]);c.Zg=!0;b=b.getAttribute&&Zj(a,b.getAttribute("action"))||"";e.push({i:c.id,n:c.name,a:b,ts:a.g.Z.W()})}}function Cj(a,b,c=!0){var d=b.toString();b.stack&&(d+="\n"+b.stack.toString());rg(a,d);c&&(a.ya=y.ERROR,a.ua=[],a.ca={})} function vk(a){if(!a.$a){ej(a,a.O,a.ea);a.Lc&&a.Lc();a.$a=a.g.Z.W();Ej(a,!0);Gj(a);ki(a.g.Da);var b=a.R.$b;if(b){const d=Pj(a,b,a.Qf,a.Uf);var c=Ji(a,b)||"";b=wk(a,b);V(a,"out",{t:"OUT",u:b||"",n:d,P:c||"",ts:a.g.Z.W()})}a.Wc=a.g.Z.W();K(a,{t:"f"});a.ba.flush();gj(a)}} async function xk(a,b){const c={flags:0,id:-65,ka:a.g.Z.W(),ja:2,kd:!0},d={blockedURI:b.blockedURI,columnNumber:b.columnNumber,disposition:b.disposition,documentURI:b.documentURI,effectiveDirective:b.effectiveDirective,lineNumber:b.lineNumber,originalPolicy:b.originalPolicy,referrer:b.referrer,sample:b.sample,sourceFile:b.sourceFile,statusCode:b.statusCode};var e=a.g.G.stringify(d,cc);e=await Ub(e);P(a.R,c,b.effectiveDirective,{hash:e,value:d})} function yk(a,b,c=!1){var d=Uc(a.$,b);if(!d.ji&&(d.ji=!0,d={wheel:function(e){const f=a.g.G.W();({deltaY:e}=e);const g=a.D.config;zk(a,a.Ph,e,f,{window:g.rageScrollWheelWindow,bf:g.rageScrollWheelDirChanges,Ff:g.rageScrollWheelMinDistance,Tg:g.rageScrollWheelIgnoreDelay})},click:function(e){if(Ak(e)){let g=e.pageX;var f=e.pageY;e.pointerType===""&&(f=e.target.getBoundingClientRect(),g=f.left+window.scrollX+f.width/2,f=f.top+window.scrollY+f.height/2);Rj(a,Bk(a,e),g,f)}},dblclick:function(e){Rj(a, Bk(a,e),e.pageX,e.pageY)},contextmenu:function(e){var f=Bk(a,e),g=e.pageX;e=e.pageY;Ki(a);f=a.$.da(f);f!==void 0&&K(a,{t:"R",I:f,x:g,y:e})},mousedown:function(e){var f=Bk(a,e),g=e.pageX;e=e.pageY;Ki(a);f=a.$.da(f);f!==void 0&&K(a,{t:"D",I:f,x:g,y:e})},mouseup:function(e){var f=Bk(a,e),g=e.pageX;e=e.pageY;Ki(a);f=a.$.da(f);f!==void 0&&K(a,{t:"U",I:f,x:g,y:e})},pointerup:function(e){var f=Bk(a,e);if(Ak(e)&&f!=document){var g=e.pageX;e=e.pageY;var h=Y(a,f);h=va.has(h)&&f.disabled;var k=f.closest&&f.closest("[disabled]"); k=k&&va.has(Y(a,k));f.nodeType==1&&(h||k)&&(f=Pj(a,f,g,e),Wc(a,-49,f))}},keypress:function(e){e=Bk(a,e);a.g.G.tagName(e)&&(Oi(a.g.Xa,e)||lk(a,e))},keyup:function(e){const f=Bk(a,e);e instanceof KeyboardEvent&&f&&a.g.G.tagName(f)&&!Oi(a.g.Xa,f)&&(++a.Zb,V(a,"k",a.Zb),lk(a,f))},paste:function(e){e=Bk(a,e);var f={flags:0,s:2,id:-28,ka:a.g.Z.W()};P(a.R,f,Vc(a,e,0,0))},cut:function(e){Ck(a,Bk(a,e))},copy:function(e){Ck(a,Bk(a,e))},touchstart:function(e){var f=Bk(a,e);a.kb.Fb=null;sk(a,"!",f,e)},touchmove:function(e){var f= Bk(a,e);if(e.touches!==void 0)if(e.touches.length!==1)a.kb.Fb=null;else{var g=e.touches[0].clientY;if(a.kb.Fb===null)a.kb.Fb=g;else{var h=a.kb.Fb-g;a.kb.Fb=g;g=a.D.config;Math.abs(h)ic(a.g.G,f))||document)===b&&e.filter((f,g)=>g===0||ic(a.g.G,f)).forEach(f=>{ic(a.g.G,f)&&(f=f.host);if(f){var g=Y(a,f);g!="input"&&g!="textarea"||mk(a,f);f=a.$.da(f);f!==void 0&&K(a,{t:"F",I:f})}}))},blur:function(e){a.Na&& (e=e.composedPath?e.composedPath():[e.target],(e.find(f=>ic(a.g.G,f))||document)===b&&e.filter((f,g)=>g===0||ic(a.g.G,f)).forEach(f=>{ic(a.g.G,f)&&(f=f.host);if(f){var g=Y(a,f);g!="input"&&g!="textarea"||nk(a,f);f=a.$.da(f);f!==void 0&&K(a,{t:"B",I:f})}}))},mouseover:function(e){((e.composedPath?e.composedPath():[e.target]).find(f=>ic(a.g.G,f))||document)===b&&Kj(a,Bk(a,e),e.pageX,e.pageY)},mouseout:function(e){((e.composedPath?e.composedPath():[e.target]).find(f=>ic(a.g.G,f))||document)===b&&Lj(a, Bk(a,e),e.pageX,e.pageY)}}),!c)){Dk(a,b,d);a.g.G.addEventListener(window,"focus",function(){setTimeout(()=>{K(a,{t:"wf"})},0)},!0);let e=null;a.g.G.addEventListener(window,"blur",function(){e===null&&(e=setTimeout(()=>{e=null;var f=document.activeElement;Y(a,f)=="iframe"&&(V(a,"c",++a.ec),tg(a.R,f),f={flags:0,id:-1,ka:a.g.Z.W(),ja:1,Ca:1},P(a.R,f,""),Qj(a));K(a,{t:"wb"})},0))},!0);a.g.G.addEventListener(window,"unhandledrejection",function(f){try{a.D.config.disableErrorHooking||Oj(a,"Unhandled rejection (promise: "+ f.promise+", reason: "+f.reason+").")}catch(g){}},!0)}} function Fk(a){a.zg||(a.zg=!0,document.addEventListener&&a.g.G.addEventListener(document,"mousemove",function(b){Z(a,function(){ck(a,b)})},!1),window.addEventListener&&(a.g.G.addEventListener(window,"load",function(){Z(a,function(){K(a,{t:"~"})})},!1),a.g.G.addEventListener(window,"DOMContentLoaded",function(){Z(a,function(){K(a,{t:"`"})})},!1),a.g.G.addEventListener(window,"resize",function(){Z(a,function(){Ki(a);a.jc=Yj();a.Mb=rk();K(a,{t:"+",w:a.jc,h:a.Mb});bk(a,document)})},!1),a.g.G.addEventListener(window, "pagehide",()=>{Z(a,function(){vk(a)})},!1),a.g.G.addEventListener(window,"pageshow",b=>{Z(a,()=>{oc(a.g.G);b.persisted&&a.$a&&(a.$a=void 0,fj(a,ib(a.M)))})},!1),a.g.G.addEventListener(window,"orientationchange",function(){Z(a,function(){try{const b=window.screen.orientation.angle;Ki(a);K(a,{t:"/",o:b});Wc(a,-41,b);bk(a,document)}catch(b){}})},!1),a.g.G.addEventListener(window,"scroll",function(){Z(a,function(){bk(a,document,!0)})},!1),a.g.G.addEventListener(window,"securitypolicyviolation",b=>{Z(a, function(){xk(a,b)})},!1),"ReportingObserver"in window&&(new window.ReportingObserver((b,c)=>{for(const {body:d}of b)xk(a,{blockedURI:d.blockedURL,columnNumber:d.columnNumber,disposition:d.disposition,documentURI:d.documentURL,effectiveDirective:d.effectiveDirective,lineNumber:d.lineNumber,originalPolicy:d.originalPolicy,referrer:d.referrer,sample:d.sample,sourceFile:d.sourceFile,statusCode:d.statusCode});c.disconnect()},{types:["csp-violation"],buffered:!0})).observe()),yk(a,document))} function Ek(a,b,c){b=a.$.da(b);b!==void 0&&K(a,{t:"M",I:b,p:c})}function Ck(a,b){var c={flags:0,s:2,id:-29,ka:a.g.Z.W()};P(a.R,c,Vc(a,b,0,0))}function Ak(a){return a.isTrusted!==!1||a.forwardedTouchEvent&&a.forwardedTouchEvent==1||a.isIonicTap&&a.isIonicTap==1?!0:!1}function Dk(a,b,c){for(const d of Object.keys(c))a.g.G.addEventListener(b,d,function(e){Z(a,function(){c[d](e)})},!0)}function Bk(a,b){return!a.g.G.qa(b)||a.tf?a.g.G.K(b):(a=a.g.G.la(b))&&a.length?a[0]:null} function Gk(a,b){return b?Y(a,b)==="select"?b:Gk(a,a.g.G.parentNode(b)):null}function $i(a){return aj(a)?a.ta.getEntriesByType("navigation")[0]:a.ta.timing}function aj(a){return!!a.ta.timeOrigin&&!!a.ta.getEntriesByType("navigation")[0]}function Hk(a){a.qg=document.visibilityState==="visible";if(!a.qg&&a.ta){var b=$i(a);b=aj(a)?a.g.Z.yb:b.navigationStart;a.pg=a.g.Z.W()-b}} function Ik(a,b,c){if(!b||b==-5){if(b!=-5){if(a.Pc>0)throw Error(c);rg(a,c+"\n"+Error().stack.toString())}a.ya=y.ERROR;a.ua=[];a.ca={}}}function Jk(a,b,c=!0){if(b instanceof ph)Ik(a,-5,"conn4");else if(b instanceof nh)Cj(a,b,c);else if(b instanceof oh)Cj(a,`Maximum retries reached:${b.message}`,c);else throw b;} function Kk(a,b,c=!1){try{var d=b.split("/");if(d.length!==3||b.indexOf("DOCTYPE")>-1)throw Error("Invalid session response");[a.B.va].includes(a.K)&&(a.ha=d[0],a.za=d[1]);a.Ba=d[2];a.Ha.La("start-event",{ha:a.ha,za:a.za,Ba:a.Ba,url:a.M.eb.qb});kh.La("capture-ready",a)}catch(e){Ik(a,!1,`BSR:${b}`)}Wh(a.g.nc,a.ha);Xh(a.g.nc,a.za);Lk(a);Mk(a,c);a.we&&oj(a,{method:"POST",url:"/v1/set-context",body:a.getContext()}).then(()=>oj(a,{method:"POST",url:"/v1/reset",body:{}})).then(()=>{a.we=!1});a.Mc.length&& (cj(a,"qr",4096,a.Mc),a.Mc=[])}function Nk(a){a.Id||(a.Id=setTimeout(function(){Ok(a)},a.D.config.publishInterval))}function Wj(a){if(a.ua.length!=0&&a.Yb){var b=a.Oc.M==0&&a.Yb;if(a.ha&&a.Ba||b)if(!a.Oc.B||a.$a)b=a.g.G.stringify(a.ua),a.Oc.send(b).then(c=>{c&&(Kk(a,c,!!a.ha),a.Ba&&wd(a.oa,"start",{sessionID:a.ha,userID:a.za,hitID:a.Ba,url:a.M.eb.qb}))}).catch(c=>{Jk(a,c)}),a.Nf++,a.ua=[]}Nk(a)} function Pk(a){a.Kc&&clearTimeout(a.Kc);a.Kc=setTimeout(function(){Z(a,function(){V(a,"p",1);a.Kc=null;a.Gc||Pk(a)})},3E4)}function Vj(a){if(a.Sb&&a.Ba&&(!a.Dd.B||a.$a)){var b=a.g.G.stringify(a.ca);a.Dd.send(b).catch(c=>{Jk(a,c)});a.ca={};Pk(a);a.Sb=!1}} function Lk(a){try{Bj(a,a.ha),Qk(a,a.za)}catch(f){}try{if(a.D.config.sessionVar)for(var b=window,c=a.D.config.sessionVar.split("."),d=0;d{Sk(a,a.D.config.sampleReplay,!0);try{await Tk(a)}catch(w){a.xa("network_interceptor_bridge_error",w.message)}if(a.D.config.abnSegmentCookie){var e=a.ra.get(a.D.config.abnSegmentCookie);if(e&&e&&Uk(a)!=e){var f={flags:128,id:-100,ka:a.g.Z.W()};P(a.R,f,e)}}try{var g=window.doNotTrack||window.navigator.doNotTrack||window.navigator.msDoNotTrack;if(g){e=!1;switch(typeof g){case "number":g==1&&(e=!0);break;case "string":e=g.charAt(0)==="1"||g==="yes"}if(e){const w= {flags:0,id:-45,ka:a.g.Z.W(),Ca:0};P(a.R,w,"")}}}catch(w){}P(a.R,{id:-9998,Ca:0,flags:512,ja:2,ka:a.g.Z.W()},"1.35.41");K(a,{t:"git",v:"7902b8226"});[a.B.va].includes(a.K)&&P(a.R,{id:-9997,Ca:0,ja:0,flags:1024,ka:a.g.Z.W()},"web");if(window.location&&typeof window.location.search=="string")var h=window.location.search;if(h!==void 0&&h.indexOf("utm_")!==-1){g=a.g.Z.W();h=new URLSearchParams(h);for(const [w,D]of h.entries())h=qa[w],h!==void 0&&P(a.R,{id:h,ja:2,flags:0,ka:g},D)}cb(a,"type")!="reload"|| a.yc?cb(a,"type")!="back_forward"||a.yc?!a.yc&&a.Oe&&(h={flags:0,id:-30,ja:!0,ka:a.g.Z.W()},P(a.R,h,a.Ea),a.yc=!0,a.Oe=!1):(h={flags:0,id:-30,ja:!0,ka:a.g.Z.W()},P(a.R,h,a.Ea),a.yc=!0):(h={flags:0,id:-10,ja:!0,ka:a.g.Z.W()},P(a.R,h,a.Ea),a.yc=!0);h=a.fa.get("slr",null);h===null&&(h=a.D.config.logResourcePercent?a.g.Z.W()%100a.D.config.pbpThreshold&& x<6E4){var r=cb(a,"type")=="reload";k=!1;l&&l.indexOf(document.referrer)>=0&&(k=!0);l="Gap";r&&(l+=" Reload");k&&(l+=" Ref_Match");var q={flags:0,s:1,id:-27,ka:a.g.Z.W()};P(a.R,q,l)}}}a.g.G.Storage.setItem.call(window.sessionStorage,"qm_last_page",document.location.toString());a.g.G.Storage.removeItem.call(window.sessionStorage,"qm_last_period")}}catch(w){}!a.ra.get(a.D.config.sessionCookieName)&&a.gf&&(r={flags:0,id:-55,ka:a.g.Z.W(),ja:0},P(a.R,r,""));a.gf||(r={flags:0,id:-33,ka:a.g.Z.W(),ja:0}, P(a.R,r,""));a.fa.set("eSync",!0);Qj(a)};if(b){b=a.fa.get("eSync",!1);var d=a.fa.get([],{});if(b&&La(d)&&(b=Ja(d),a.Hf||Yk()||!document.referrer&&!a.D.config.temp.enableKVS)){sg(a.R,b);c();return}a.D.config.temp.enableKVS?a.la.get({s:a.ha,Q:5}).then(e=>{Z(a,async function(){let f,g,h=await e.text();h=h.replace(/[\u0000-\u001F\f]/gm,"");if(h==="")sg(a.R,{E:[]});else{try{f=a.g.G.Ra(h)}catch(k){g=k.toString()}Ik(a,f,"BEI-"+g+"-"+h);a.fa.import(f);f=Ja(f);sg(a.R,f)}c()})}).catch(()=>{Z(a,function(){sg(a.R, {E:[]});c()})}):(sg(a.R,{E:[]}),c())}else sg(a.R,{E:[]}),c()}function oj(a,{method:b,url:c,body:d},e=ua){const f=[],g=[];a.Pd.forEach(h=>{try{if(a.g.G.isConnected(h)){const k=a.g.zc.Ga(h.contentWindow,{method:b,url:c,body:d}).then(l=>{e(l,h)}).catch(l=>{L(a.ba,"sdkcomm: issue sending message to child",{message:l.message,method:b,url:c},"error")});g.push(k)}else f.push(h)}catch(k){f.push(h)}});f.forEach(h=>{a.Pd.delete(h)});return Promise.all(g)} function cj(a,b,c,d){P(a.R,{id:0,flags:c,ja:1,Ca:null,ka:a.g.Z.W()},d);V(a,b,d)}function Hj(a){a.Oc=new xh(a,a.mf.bind(a),a.D,a.la,a.g.G);a.Dd=new xh(a,a.Fi.bind(a),a.D,a.la,a.g.G);a.wg=new xh(a,a.Ei.bind(a),a.D,a.la,a.g.G)}function Ok(a){Z(a,function(){a.Id=void 0;Wj(a);Vj(a)})}function Gj(a){V(a,"e",B(a.Fc/1E3));V(a,"c",a.ec);V(a,"m",a.Vc);V(a,"s",a.Lb);V(a,"k",a.Zb)}function Zk(a,b){return!J(b,a.D.aa.Eh)&&J(b,a.D.aa.Gh)}function $k(a,b){return J(b,a.D.aa.Fh)||!J(b,a.D.aa.Dh)} function ak(a,b){if(b){try{var c=new URL(b,window.location.href);c.search="";b=c.href}catch(d){}for(c=0;c{if(!d)return c;const e=d.split(":")[0];for(let f=0;fa.Hc.push({de:b,data:c,resolve:d})):a.wg.send(c,{de:b}).then(()=>!0).catch(d=>{Jk(a,d,!1);return!1})} async function el(a,b,c,d,e,f,g){try{if(!(c.indexOf("data:")>-1)){var h=g.qend||a.g.Z.W(),k=!1;if(c&&typeof c==="string"&&$k(a,c)){var l=od(a.g.oa,Ta(c),f,g.response);l&&(l.url&&(c=l.url),l.status&&(b=l.status));c=Ua(a.D.aa.ac,a.D.aa.fc,Ta(c));if(!(c.indexOf("quantummetric.com")>=0)||a.D.config.temp.isPivot){var m=await cl(a,g)||"";try{var n=g.getAllResponseHeaders()}catch(C){}var x=al(a,n),r=al(a,g.reqHeaders);f=await nf(g,e,f);g.qrequest=f;g.qurl=c;g.qstatus=b;g.qreqheaders=g.reqHeaders;g.qrespheaders= n;g.qresponse=m;g.qmethod=e;g.qduration=h-d;"responseURL"in g||(g.responseURL=c);if(Zk(a,c)&&a.Na){var q={t:"xhr",m:e,u:c,st:b,s:d,r:h-d},w=f?f.toString():"";n=l=!1;w.length>a.D.config.maxXHRDataLength?l=!0:w=Ma(w,a.D.aa.af,a.g.G);m.length>a.D.config.maxXHRDataLength?n=!0:m=Ma(m,a.D.aa.af,a.g.G);const C=bl(a,c);if(C){const t=await he(a.pa,x);t?q.resHeaders_enc=t:q.resHeaders=O(x||"");if(w&&!w.startsWith("QM: "))if(l)q.req="QM: Too much data ("+w.length+") to encrypt request";else{const p=Ia(),u=await he(a.pa, w);u?(q.req_enc={h:p,enc:!0},dl(a,p,u)):(q.req={h:p,enc:!1},dl(a,p,O(w)))}if(m&&!m.startsWith("QM: "))if(n)q.res="QM: Too much data ("+m.length+") to encrypt response";else{const p=Ia(),u=await he(a.pa,m);u?(q.res_enc={h:p,enc:!0},dl(a,p,u)):(q.res={h:p,enc:!1},dl(a,p,O(m)))}}else{q.resHeaders=x;if(w&&!w.startsWith("QM: "))if(l)q.req="QM: XHR Req data too long ("+w.length+")";else{const t=Ia();q.req={h:t,enc:!1};dl(a,t,w)}if(m&&!m.startsWith("QM: "))if(n)q.res="QM: XHR Res data too long ("+m.length+ ")";else{const t=Ia();q.res={h:t,enc:!1};dl(a,t,m)}}k=!0;a.D.config.logReqCookiesForXHR&&(new RegExp(window.location.hostname,"i")).test(c)&&(r||(r=""),r+="cookie: "+a.ra.getAll()+"\r\n");if(r)if(C){const t=await he(a.pa,r);t?q.reqHeaders_enc=t:q.reqHeaders=O(r)}else q.reqHeaders=r;wd(a.oa,"api",q,g);K(a,q)}var D=J(c,a.D.aa.Hh);J(c,a.D.aa.Ch)||(b>=500?Wc(a,-3,Zj(a,c)):b==403||b==401?Wc(a,-13,Zj(a,c)):b==404?Wc(a,-14,Zj(a,c)):b>=400?Wc(a,-15,Zj(a,c)):b==310?Wc(a,-16,Zj(a,c)):b>=300?Wc(a,-17,Zj(a,c)): b==0&&g&&g.qtimedOut&&Wc(a,-11,Zj(a,c)));D&&(q={m:e,u:Zj(a,c),c:b,st:b,s:f?f.length:0,S:m?m.length:0,r:h-d,ts:B(a.g.Z.W()/1E3)},V(a,"x",q),h-d>a.D.config.xhrPerformanceSlow&&a.Rh++<=3&&Wc(a,-7,Zj(a,c)),k||(q.t="xhr",K(a,q,!0),wd(a.oa,"api",q,g)));a.R&&(g.data=f?f.toString():"",setTimeout(function(){var C=a.R;C.Ia=g;C.Kd=g;qg(C,"xhr",C.J.g.Z.W());C.Kd=null},0),k||D||wd(a.oa,"api",{m:e,u:c,st:b,r:h-d},g))}}}}catch(C){a.xa("xhr_listener_error",C.message.slice(-256))}} function fl(a,b){b=Qa(b);a=Qa(a.ra.getAll());var c="",d;for(d in a)a.hasOwnProperty(d)&&(b[d]&&b[d]==a[d]||(c+="set-cookie: "+d+"="+decodeURIComponent(a[d])+"\r\n"));return c}function gl(a,b,c,d){b={t:"pc",I:a.$.da(b),p:c,v:d};K(a,b)}function hl(a){if(!a.nh){a.nh=!0;var b=Aa(window.HTMLStyleElement.prototype,"disabled");b.configurable&&Object.defineProperty(window.HTMLStyleElement.prototype,"disabled",{...b,set:function(c){try{gl(a,this,"disabled",c)}catch(d){}return b.set.call(this,c)}})}} function il(a,b,c="",d=null,e=0,f=null,g=null){return new Promise((h,k)=>{try{if(typeof b=="object"&&b.constructor&&b.constructor.name==="Response"&&!b.Uh){let l={response:""};l._qmResponseType=b.type;l.getAllResponseHeaders=function(){let m="";if(b.headers&&typeof b.headers.entries=="function"){const n=b.headers.entries();let x=0,r=n.next();for(;!r.done&&x<1E3;)m+=`${r.value[0]}: ${r.value[1]}\r\n`,r=n.next(),x++}a.D.config.monitorXHRSetCookies&&g&&(m+=fl(a,g));return m};f&&(l.reqHeaders=f);if(b.text&& typeof b.clone==="function"){const m=b.clone();if(b.type==="opaque"||b.type==="opaqueredirect")return l.response="QM: Unable to track opaque response",el(a,m.status,b.Vh,e,c,d,l),h();m.text().then(function(n){l.response=n;el(a,m.status,m.url,e,c,d,l)}).catch(n=>{n.name==="AbortError"&&(l.response=a.ig,el(a,m.status,m.url,e,c,d,l))}).finally(h)}b.Uh=1}}catch(l){k(l)}})} function jl(a){if(a.Dc===null&&window.fetch&&a.D.config.hookFetch&&!a.sg){a.sg=!0;var b=window._o_Fetch||window.fetch;window.fetch=function(c,...d){const [e,...f]=d;a.g.G.pd(c)==="[object URL]"&&(c=String(c));try{if(a.If)return a.xa("recursive_fetch",window.location.href),a.g.G.contentWindow.fetch.call(this,c,...d);a.If=!0;var g=a.g.Z.W();let x;try{x=c instanceof Request?c:new Request(c,e);var h=x.method,k=null,l=null,m=null;function z(A){var W=null;try{if(A)if(W="",typeof A.entries=="function"){const F= A.entries();let R=F.next();for(A=0;!R.done&&A<1E3;)W+=`${R.value[0]}: ${R.value[1]}\r\n`,R=F.next(),A++}else for(let F in A)A.hasOwnProperty(F)&&(W+=`${F}: ${A.get?A.get(F):A[F]}\r\n`)}catch(F){}return W}if(typeof c==="string")typeof e==="object"&&(k=e.body,l=z(x.headers));else if(typeof c==="object"&&c.constructor&&c.constructor.name==="Request"&&typeof c.clone==="function"){var n=c.clone();e&&e.body&&typeof e.body=="string"&&e.body.length?k=e.body:window.ReadableStream&&n.body instanceof window.ReadableStream? Ba(n.body).then(A=>k=A).catch(ua):n.text().then(function(A){k=A}).catch(ua);l=z(e&&e.headers||n.headers)}a.D.config.monitorXHRSetCookies&&(m=a.ra.getAll())}catch(z){}let r=!1,q=!1,w=!1,D,C=e&&e.signal&&e.signal instanceof AbortSignal;try{C&&(D=new AbortController,e.signal.addEventListener("abort",function(){q=!0;p()}),e.signal=D.signal)}catch(z){}let t=!1;const p=()=>{t||!q||r&&!w||(D.abort(),t=!0)};let u=b.call(this,c,...d);try{u.then(function(z){try{if(a.D.config.forceDeferFetchAborts&&(r=!0),!z.qmre_f){z.qmre_f= 1;let A=z.clone();(z.type==="opaque"||z.type==="opaqueredirect")&&x&&x.url&&(A.Vh=x.url);il(a,A,h,k,g,l,m).finally(()=>{w=!0;p()})}}catch(A){}C&&["arrayBuffer","blob","formData","json","text"].forEach((A=>W=>{const F=A[W];A[W]=function(...R){r=!0;return F.call(this,...R)}})(z));return z}).catch(z=>{z.name==="AbortError"&&x&&(z={response:"",getAllResponseHeaders:function(){let A="";a.D.config.monitorXHRSetCookies&&m&&(A+=fl(a,m));return A}},l&&(z.reqHeaders=l),z.response=a.ig,el(a,-1,x.url,g,h,k,z))})}catch(z){}return u}finally{a.If= !1}};window._o_Fetch&&(window.QuantumMetricFetch=window.fetch)}}function kl(a,b,c){var d=a.$.B(b),e=d.url,f=d.method,g=a.g.Z.W();if(b.readyState===4)el(a,b.status,e,g,f,c,b);else{var h=function(){Z(a,function(){e=e||b.responseURL;b.readyState==4&&(b.qresponse=b.response,el(a,b.status,e,g,f,c,b),b.removeEventListener&&b.removeEventListener("readystatechange",h))})};b.addEventListener&&a.g.G.addEventListener(b,"readystatechange",h,!1)}} function ll(a){function b(m,n,...x){var r=this;Z(f,function(){var q=f.$.B(r);q.method=m;q.url=n});return g.call(this,m,n,...x)}function c(m,...n){var x=this;Z(f,function(){x.addEventListener("abort",function(){x.qaborted=!0},!1);x.addEventListener("error",function(){x.qnetworkError=!0},!1);x.addEventListener("timeout",function(){x.qnetworkError=!0;x.qtimedOut=!0},!1)});Z(f,()=>{setTimeout(function(){kl(f,x,m)},0)});return h.call(this,m,...n)}function d(m,n,...x){try{this.reqHeaders=(this.reqHeaders|| "")+(m+": "+n+"\r\n")}catch(r){}return k.call(this,m,n,...x)}function e(...m){var n=this;Z(f,function(){n.qaborted=!0});return l.call(this,...m)}var f=a;if(a.Dc===null){a=window.XMLHttpRequest.prototype;var g=a.open,h=a.send,k=a.setRequestHeader,l=a.abort;if(g&&h&&k&&(a.open=b,a.send=c,a.setRequestHeader=d,a.abort=e,a.open!=b))try{Object.defineProperty(a,"open",{value:b,writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(a,"send",{value:c,writable:!0,enumerable:!0,configurable:!0}), Object.defineProperty(a,"setRequestHeader",{value:d,writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(a,"abort",{value:e,writable:!0,enumerable:!0,configurable:!0})}catch(m){}}} function ml(a){if(a.ha!==void 0)return a.ha;for(let b=0;b{try{switch(d){case "cookie":a.ra.set({[a.D.config.userCookieName]:b,expires:c.toUTCString()});break;default:a.kc.set("u",b);var e=a.kc;e.B.exp=c.getTime();Eg(e,"exp")}}catch(f){}})}}function Rk(a){if(a.Hc.length>0){const b=a.Hc;a.Hc=[];for(const c of b)dl(a,c.de,c.data).then(c.resolve)}} function ol(a,b){if(a.ub)try{const f=a.ta.timing.domInteractive-a.ta.timing.requestStart;let g=[];a:for(let h=0;ha.D.config.maxResourcesPerHit);h++){const k=b[h],l=k.initiatorType;if(a.D.config.allowedResourceTypes.indexOf(l)>-1){const m={};try{let n=Ua(a.D.aa.ac,a.D.aa.fc,Ta(k.name));const x=xb(a.D.config),r=wb(a.D.config,a.sub);if(x&&n.indexOf(x)>-1||r&&n.indexOf(r)>-1||n.indexOf("quantummetric.com")>-1&&!a.D.config.temp.isPivot||J(n,a.D.aa.Tf))continue a;for(const w in a.cg)if(a.cg.hasOwnProperty(w)){const D= a.cg[w];m[D]=null;if(typeof k[w]!=="undefined"){let C=k[w];if(typeof C=="number"){if(a.Lh.indexOf(w)>-1&&(C-=a.jf,C>14E6))continue a;C=Math.max(B(C),0)}m[D]=C}}m.st=[];if(k.serverTiming){const w=k.serverTiming;for(var c=0;ck.transferSize*1.1?1:0:null;let q=E(k,["duration"],!1);q!=0?q=q<10?1:0:q=null;m.c=q;n&&n.length>1024&&(n=n.substring(0,1024));m.p=n;g.push(m);a.Zf++}catch(n){}}}g.length&&(a.ub?cj(a,"qr",4096,g):a.Mc=a.Mc.concat(g))}catch(f){console.error("QM:: could not process resource timings:",f)}} function Vk(a){if(a.ta.getEntriesByType)try{a.bh=new window.PerformanceObserver(function(b){const c=a.D.aa.ei;b=b.getEntries();var d=b.filter(e=>{const f=e.nextHopProtocol.startsWith("http/"),g=c.some(h=>h.test(e.name));return f&&!g});if(d.length>0){const e=d.length.toString();d=d.map(f=>ak(a,Ua(a.D.aa.ac,a.D.aa.fc,Ta(f.name)))).filter(f=>!J(f,a.D.aa.Tf));d={hash:Ia(),value:{violations:d}};P(a.R,{flags:0,id:-67,ka:a.g.Z.W(),ja:0},e,d)}a.jh&&ol(a,b)}),a.bh.observe({type:"resource",buffered:!0})}catch(b){}} function Xk(a){try{a.Vg=new window.PerformanceObserver(function(b){b=b.getEntries();for(let c=0;c {Z(a,function(){a.M.Me(d.startTime-f[f.length-1].startTime);fj(a,a.M.Ua,!0)})},0)}}}),a.Vg.observe({type:"mark",buffered:!0})}catch(b){}} function pl(a){if(!a.Tb){var b,c="pointerdown keydown click touchstart visibilitychange pagehide".split(" "),d=g=>b=B(g.startTime,3),e=new window.PerformanceObserver(g=>g.getEntries().forEach(d)),f=g=>{g.isTrusted&&b&&document.visibilityState!=="hidden"&&(e.takeRecords().forEach(d),cj(a,"mt",65536,{[a.qa["largest-contentful-paint"]]:b}),a.Tb.disconnect())};e.observe({type:"largest-contentful-paint",buffered:!0});c.forEach(g=>a.g.G.addEventListener(window,g,f,{once:!0}));a.Tb={disconnect(){e.disconnect(); c.forEach(g=>window.removeEventListener(g,f))}}}}function bj(a,b){const c=$i(a).loadEventEnd||Infinity;return b{let e;const f=new window.PerformanceObserver(g=>{let h=null;for(const k of g.getEntries())bj(a,k.processingStart)&&(h=k.processingStart-k.startTime);clearTimeout(e);d(h);f.disconnect()});f.observe({type:"first-input",buffered:!0});e=setTimeout(()=>{d(null);f.disconnect()},200)}),c=new Promise(d=>{if(!window.PerformanceObserver.supportedEntryTypes.includes("layout-shift"))return d(null);let e;const f=new window.PerformanceObserver(g=>{let h=0;for(const k of g.getEntries())!k.hadRecentInput&& bj(a,k.startTime)&&(h+=k.value);clearTimeout(e);d(h);f.disconnect()});f.observe({type:"layout-shift",buffered:!0});e=setTimeout(()=>{d(null);f.disconnect()},200)});Promise.all([b,c]).then(([d,e])=>{d={"first-input-delay":d?B(d,3):null,"cumulative-layout-shift":e?B(e,3):null};e={};for(const f in d)d.hasOwnProperty(f)&&(e[a.qa[f]]=d[f]);cj(a,"mt",65536,e)}).catch(()=>{})} function Wk(a){if(!a.Lc)try{const b=new window.Map,c=({interactionId:e,duration:f,target:g})=>{if(e){f=B(f,0);var h=b.get(e);h&&f{e.getEntries().forEach(c)});d.observe({type:"event",buffered:!0,durationThreshold:16});a.Lc=()=>{d.takeRecords().forEach(c);var e=[...b.values()].sort((h,k)=>h.duration-k.duration);if(e.length!==0){var {duration:f,Fa:g}=e[Math.min(e.length-1,Math.ceil(.98*e.length)-1)];f>0&&(e={v:f, sel:g},V(a,"inp",e),K(a,{t:"inp",v:e},!0));b.clear()}}}catch(b){}}function rl(a){if(a.Bc&&a.Bc.length)try{let b={};const c=$i(a),d=aj(a)?a.g.Z.yb:c.navigationStart;let e=[];a.Bc.forEach(f=>{let g=c[f];typeof g==="number"&&(aj(a)||(g=Math.max(g-d,0)),g>0&&g<14E6?b[a.qa[f]]=B(g):e.push(f))});cj(a,"mt",65536,b);a.Bc=e}catch(b){}}async function sl(a){var b=a.ra.getAll();(b=await he(a.pa,b))&&K(a,{t:"c",encrypted_cookies:b})} function tl(a){if(!a.fb){a.fb={};try{var b=function(){var c=window.navigator.userAgent,d=c.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(d[1])){var e=/\brv[ :]+(\d+)/g.exec(c)||[];return"IE "+(e[1]||"")}if(d[1]==="Chrome"&&(e=c.match(/\b(OPR|Edge)\/(\d+)/),e!=null))return e.slice(1).join(" ").replace("OPR","Opera");d=d[2]?[d[1],d[2]]:[window.navigator.appName,window.navigator.appVersion,"-?"];(e=c.match(/version\/(\d+)/i))!=null&&d.splice(1,1,e[1]);return d.join(" ")}().split(" "); b.length==2&&(a.fb.lb=b[0],a.fb.version=b[1])}catch(c){}}return a.fb}async function ul(a){try{const b=tl(a),{ke:c}=await Gg(b.lb==="Safari",b.lb==="Chrome"||b.lb==="Edge"||b.lb==="Opera",b.lb==="Firefox");a.ke=c}catch(b){}}async function vl(a){if(window.navigator.storage&&window.navigator.storage.estimate){var b=await navigator.storage.estimate();b.usage/b.quota<.95||P(a.R,{flags:0,id:-68,ka:a.g.Z.W(),ja:0},"")}} function wl(a,b){a.D.config.captureCookiesReplay?a.D.config.allowClearCookies?a.M.sd(b,a.ra.getAll()):setTimeout(()=>{sl(a)},1E3):a.M.sd(b,"");if(!a.M.Bd(b)){var c=$i(a),d=c.domComplete;c=aj(a)?a.g.Z.yb:c.navigationStart;d=B(c+d+a.D.config.webVitalsSnapshotBuffer,0);d=a.g.Z.W()-d;setTimeout(()=>{ql(a)},Math.abs(Math.min(d,0)))}b=a.M.lf(b);a.Yb=!0;tj(a,b);[,b]=mi(a,document);b!=0&&bk(a,document);[a.B.lc].includes(a.K)||a.g.se.start()} function wk(a,b,c=0){return b&&a.g.G.tagName(b)&&a.g.G.tagName(b).toLowerCase()=="a"&&b.getAttribute("href")?b.getAttribute("href"):a.g.G.parentNode(b)&&c++<10?wk(a,a.g.G.parentNode(b),c):null} function Uj(a){a.ua=a.ua.map(b=>{switch(b.t){case "T":if(b.n==="qframe")return b;case "r":case "a":case "t":return null;case "]":case "[":case "}":case "*":case "C":case "F":case "B":case "_":return null;case "SA":case "CE":case "sc":return null;case "as":case "SI":case "SD":case "SR":return null;case "DO":case "po":return null;case "co":return null;case "O":case "X":case "R":case "D":case "U":case "m":case "!":case "@":case "#":case "$":return null;case "S":return null;case "M":return null;case "xhr":return b.req= b.res="Omitted due to page unload",delete b.req_enc,delete b.res_enc,delete b.reqHeaders,delete b.resHeaders,delete b.reqHeaders_enc,delete b.resHeaders_enc,b;default:return b}}).filter(Boolean)} function zk(a,b,c,d,e){c>0?(d-b.wf>e.window&&(b.Yd=0,b.Zc=0),b.wf=d,b.gd==1&&b.Yd++,b.Zc+=Math.abs(c),b.gd=-1):c<0&&(d-b.Bf>e.window&&(b.Fe=0,b.qd=0),b.Bf=d,b.gd==-1&&b.Fe++,b.qd+=Math.abs(c),b.gd=1);Math.abs(c)&&b.Fe>=e.bf&&b.Yd>=e.bf&&b.qd>=e.Ff&&b.Zc>=e.Ff&&(!b.ne||d-b.ne>=e.Tg)&&(c={flags:0,id:-64,ka:a.g.Z.W(),ja:1,Ca:1},P(a.R,c,""),b.ne=d)} function xl(){var a=document.doctype,b="";a&&(b="");return b}function yl(a,b){const c=Aa(b,"checked");c&&c.configurable&&Object.defineProperty(b,"checked",{...c,set:function(d){const e=c.set.call(this,d);try{const f=a.$.B(b);if(f.fd===d)return e;f.fd=d;gl(a,b,"checked",d)}catch(f){}return e}})}function zl(a,b){try{Sj(a,b)}catch(c){}} function Al(a,b){const c=a.g.G.pb(b,"option");for(let e=0;e{zl(a,b)});c.ii=!0}} function Bl(a,b){let c=Aa(b,"selected");Object.defineProperty(b,"selected",{...c,set(d){c.set.call(this,d);(d=Gk(a,b))&&zl(a,d)}})}async function Cl(a,b){const c=a.$.da(b);if(b=a.g.G.adoptedStyleSheets(b)){b=Dl(a,b);const d={t:"as",I:c,S:[]};b.then(e=>{d.S=e});K(a,d)}} async function El(a,b,c,d){b=a.$.da(b);const e={},f=[];d.forEach((k,l)=>{a.g.Aa.is(k,"CSSStyleSheet")&&(f.push(k),e[l]=f.length-1)});const g=Dl(a,f),h={t:"asm",I:b,m:c,a:[]};g.then(k=>{const l=d.map((m,n)=>n in e?{at:"s",a:k[e[n]]}:{at:"p",a:m});h.a=l});K(a,h)} function Fl(a,b){const c=Uc(a.$,b);if(!c.ki){var d=Aa(b,"adoptedStyleSheets");if(d&&d.configurable){Object.defineProperty(b,"adoptedStyleSheets",{set:function(e){e=d.set.call(this,e);try{Cl(a,b)}catch(f){}return e},get:function(){return d.get.apply(this)},enumerable:d.enumerable,configurable:!0});for(const e of Ti){if(!(e in Array.prototype))continue;const f=Aa(b.adoptedStyleSheets,e);if(f&&!f.configurable)continue;const g=f&&typeof f.value==="function"?f.value:Array.prototype[e];try{Object.defineProperty(b.adoptedStyleSheets, e,{value:function(...h){const k=g.apply(this,h);try{El(a,b,e,h)}catch(l){}return k},configurable:!0,enumerable:f?f.enumerable:!1,writable:f?f.writable:!0})}catch(h){}}c.ki=!0}}}function Gl(a,b=window){Uc(a.$,b).si||(Uc(a.$,b).si=!0,a.g.G.addEventListener(b,"toggle",c=>{if(a.ya===y.NONE&&c.newState!==c.oldState){var d=a.$.da(c.target);d&&(d={t:"po",I:d,o:c.newState==="open"},c.source&&(d.s=a.$.da(c.source)),K(a,d))}},{capture:!0}))} function xj(a,b){const c=a.$.B(b);b=a.g.G.shadowRoot(b);c.qh||(Fl(a,b),yk(a,b,!0),Gl(a,b),c.qh=!0,a.dc.add(b),b&&b.slotAssignment==="manual"&&b.addEventListener("slotchange",d=>{const e=a.cb(d.target);e&&(d=(d.target.assignedNodes({flatten:!0})||[]).map(f=>a.cb(f)).filter(Boolean),K(a,{t:"sc",I:e,A:d}))}));a.g.cc.observe(b)}function Dl(a,b){const c=[];for(let d=0;d{L(a.ba,"sdkcomm: issue sending message to child",{message:g.message,method:c,url:d},"error")})} async function Il(a){var b=document.documentElement;const c=new Si(a.g.G);var d=new bh({ma:new WeakMap,oe:!1,He:{},wb:new Set,Ob:()=>!1,Nb:()=>!1,ze:!1,ye:!1,url:a.Ea,G:a.g.G,supports:a.g.supports,Db:c.B.bind(c),ee:a.cb.bind(a),da:Ea()});const {sb:e}={sb:dh(b,d),Ib:d.Ib},f=new ac({g:{ia:a.g.ia,G:a.g.G},D:{aa:{fe:"*",ae:"",md:!1},config:{hashResourceURL:""}},fb:{lb:a.fb.lb}});d.De.forEach(({node:k,sb:l})=>{k.nodeType===11?(k=a.g.G.adoptedStyleSheets(k).map(m=>Zb(f,m)),Promise.all(k).then(m=>{l.S=m})): (a.g.G.tagName(k)==="STYLE"&&Zb(f,k.sheet).then(m=>{l.S=m;l.C=[]}),a.g.G.tagName(k)==="LINK"&&k.getAttribute("href")&&Zb(f,k))});b=$b(f);const g=await Promise.all(a.g.G.Array.from(a.Pd).map((k,l)=>{const m=new yb;Hl(a,k.contentWindow,{method:"POST",url:"/v1/page-freeze",body:{id:l}},n=>{m.resolve({dom:n&&n.dom,qf:n&&n.qf,hoveredElement:n&&n.hoveredElement})});return Promise.race([m.promise,new Promise(n=>{setTimeout(n,5E3,{})})])}));d=g.find(k=>k.hoveredElement);const h=a.Sc&&[c.da(a.Sc)];h&&d&&d.hoveredElement&& h.push(...d.hoveredElement);return b.then(()=>({json:e,iframes:g,hoveredElement:h}))} function vj(a){const b=new a.g.G.WeakMap,c=a.D.aa.ld;a.zb&&(a.g.ia.querySelectorAll(document,a.D.aa.Pb).forEach(d=>{a.$.B(d).Ge!==!0&&(b.set(d,{encrypt:!0}),a.$.B(d).Wb=!0)}),a.g.ia.querySelectorAll(document,a.D.aa.Ud).forEach(d=>{if(a.$.B(d).Ge!==!0){b.has(d)||b.set(d,{});var e=b.get(d);e.encrypt=!1;a.$.B(d).Wb=e.encrypt}}),a.D.config.encryptNodeAttributes.forEach(d=>{const {sel:e,attrs:f}=d;a.g.ia.querySelectorAll(document,e).forEach(g=>{b.has(g)||b.set(g,{});g=b.get(g);g.$d=g.$d?g.$d.concat(f): f})}));c||a.g.ia.querySelectorAll(document,a.D.aa.Ze).forEach(d=>{if(a.$.B(d).Ge!==!0){b.has(d)||b.set(d,{});var e=b.get(d);e.jd=!0;a.$.B(d).Za=e.jd}});a.g.ia.querySelectorAll(document,a.D.aa.Vd).forEach(d=>{if(a.$.B(d).Ge!==!0){b.has(d)||b.set(d,{});var e=b.get(d);e.jd=!1;a.$.B(d).Za=e.jd}});a.D.aa.oh.forEach(d=>{const {sel:e,attrs:f}=d;a.g.ia.querySelectorAll(document,e).forEach(g=>{b.has(g)||b.set(g,{});g=b.get(g);g.wb=g.wb?g.wb.concat(f):f})});a.D.aa.Ab.forEach(d=>{a.g.ia.querySelectorAll(document, d.Fa).forEach(e=>{b.has(e)||b.set(e,{});e=b.get(e);e.Yf?e.Yf.push(d):e.Yf=[d]})});a.D.aa.ad&&a.g.ia.querySelectorAll(document,a.D.aa.ad).forEach(d=>{b.has(d)||b.set(d,{});b.get(d).$c=!0});return b}function Jl(a,b){b<25E3||setTimeout(()=>{a.xa("DOM_SIZE",b)},1)} async function Kl(a){const {sb:b,Ib:c,Og:d}=uj(a,document);a.uc=null;var e=a.g.G.adoptedStyleSheets(document)||[];e=Promise.all(e.map(f=>a.g.Aa.bb(f))).then(f=>{b.S=f});Jl(a,c);a.M.Le(c);await Promise.all([d,e]);return`${xl()}`} function Ll(a){Z(a,function(){if(a.rc<5242880){if(a.rc===0)try{const b={elements:document.querySelectorAll("*").length,htmlLength:document.documentElement.outerHTML.length,children:document.body.childNodes.length,session:a.ha,hit:a.Ba,url:a.Ea};L(a.ba,"htmlSyncZeroSize",b);K(a,{t:"dbg",msg:"htmlSyncZeroSize",data:b},!0)}catch(b){}else dl(a,a.Ub,a.Ed).then(b=>{b&&K(a,{t:"dbg",msg:"htmlSyncSucceeded",data:{hash:a.Ub}},!0)});a.Ed=""}else a.xa("ZSYNC_2LG",{htmlSize:a.rc,pageURL:a.Ea})})} function Ml(a){a.xg||(a.xg=!0,window.addEventListener("error",b=>{const c=b.message,d=b.filename,e=b.lineno,f=b.colno;b=b.error;const g=[];c&&g.push(c);d&&g.push(d);e&&g.push(e);f&&g.push(f);b&&b.stack&&g.push(b.stack);Oj(a,g.toString())}))} function Nl(a){if(!a.og&&(a.og=!0,window.HTMLDialogElement!=void 0)){const b=window.HTMLDialogElement.prototype.showModal;window.HTMLDialogElement.prototype.showModal=function(){try{const c=a.$.da(this);K(a,{t:"DO",I:c});ej(a,a.O,a.ea)}catch(c){}return b.call(this)}}}function Ol(a,b,c,d,e){c={t:"SI",i:d,v:c,p:e};b.ownerNode?c.I=a.$.da(b.ownerNode):(d=a.g.Aa.register(b),c["I+"]=d.Md);if(c.I||c["I+"])a.g.Aa.unregister(b),K(a,c),ej(a,a.O,a.ea)} function Pl(a,b,c,d){c={t:"SD",i:c,p:d};b.ownerNode?c.I=a.$.da(b.ownerNode):(d=a.g.Aa.register(b),c["I+"]=d.Md);if(c.I||c["I+"])a.g.Aa.unregister(b),K(a,c),ej(a,a.O,a.ea)} function Ql(a){if(!a.wh&&(a.wh=!0,typeof window.CSSStyleSheet!=="undefined")){var b=window.CSSStyleSheet.prototype.insertRule;b&&(window.CSSStyleSheet.prototype.insertRule=function(e,f){const g=b.call(this,e,f);try{a.ya===y.NONE&&Ol(a,this,e,f)}catch(h){}return g});var c=window.CSSStyleSheet.prototype.deleteRule;c&&(window.CSSStyleSheet.prototype.deleteRule=function(e){const f=c.call(this,e);try{a.ya===y.NONE&&Pl(a,this,e)}catch(g){}return f});var d=window.CSSStyleSheet.prototype.replaceSync;d&&(window.CSSStyleSheet.prototype.replaceSync= function(e){const f=d.call(this,e);try{if(a.ya===y.NONE){e={t:"SR",v:{v:e}};if(this.ownerNode)e.I=a.$.da(this.ownerNode);else{const g=a.g.Aa.register(this);e["I+"]=g.Md}if(e.I||e["I+"])a.g.Aa.unregister(this),K(a,e),ej(a,a.O,a.ea)}}catch(g){}return f});"CSSStyleRule CSSMediaRule CSSSupportsRule CSSStartingStyleRule CSSPageRule CSSLayerBlockRule".split(" ").forEach(e=>{const f=window[e]&&window[e].prototype.insertRule;f&&(window[e].prototype.insertRule=function(h,k){const l=f.call(this,h,k);try{a.ya=== y.NONE&&Ol(a,this.parentStyleSheet,h,k,Yg(this,a.g.G))}catch(m){}return l});const g=window[e]&&window[e].prototype.deleteRule;g&&(window[e].prototype.deleteRule=function(h){const k=g.call(this,h);try{a.ya===y.NONE&&Pl(a,this.parentStyleSheet,h,Yg(this,a.g.G))}catch(l){}return k})})}} function Rl(a,b){const c=new Wa(a,b);if(b===4||b===1)a.Oe=!0;if(c.navigationType===64||mb(a.M,c)){const d=lb(a.M,c);a.fa.set("lastUrl",kb(a.M).toString());a.jf=fb(a.M);a.Pe||(a.stop(y.Se),a.Cb&&clearTimeout(a.Cb),a.Cb=setTimeout(function(){fj(a,d,!0)},c.navigationType===64?0:a.D.config.spaLocationChangedTimeout))}} function Sl(a){function b(k){try{Rl(c,k)}catch(l){}}if(!a.fg){a.fg=!0;var c=a,d=a.g.G;d.addEventListener(window,"hashchange",function(){Rl(c,16)},!1);var e=window.history,f=e.go;a=e.pushState;var g=e.replaceState;e.go=function(...k){k=f.apply(e,k);b(1);return k};var h=(k,l)=>(...m)=>{try{return k.apply(e,m)}catch(n){if(n.name!=="DataCloneError"&&typeof m[0]!=="object")throw n;m[0]=d.Ra(d.stringify(m[0]));return k.apply(e,m)}finally{b(l)}};e.pushState=h(a,2);e.replaceState=h(g,8);d.addEventListener(window, "popstate",function(){b(4)},!1)}}function Uk(a){if(a=a.R.ob)return a.abn}function Dj(a){let b=a.fa.get("sst",!1);b||(b=a.g.Z.W(),a.fa.set("sst",b));b=parseInt(b,10);const c=a.g.Z.W();return{ni:Math.ceil((c-b)/6E4),oi:a.D.config.maxSessionDuration*60*1E3-(c-b)}} function Sk(a,b,c=!1){if(b!==0){var d=a.fa.get("sampleReplayEnabled",null);if(d!==null)a.Vb&&(a.Vb=!1,Tl(a,d));else{if(c=!c)c=!a.D.config.temp.enableKVS||a.Hf||Yk()?!1:a.ra.get(a.D.config.sessionCookieName)!==null;c?a.Vb=!0:(d=a.g.Z.W()%100{(e.type!=="fetch"||b)&&await el(a,...e.args)};a.Dc.onAPI(d);a.kg=!0;return Promise.all(c.map(d))}} function Yk(){const a=document.referrer;if(!a)return!1;try{return(new URL(a)).host===window.location.host}catch(b){return!1}} function Ul(a){a.g.G.addEventListener(window,"load",function(){setTimeout(function(){rl(a)},5)});if(J(window.location.href,a.D.aa.nd))setTimeout(function(){a.start()},0);else if(a.g.G.readyState(document)==="complete")setTimeout(function(){a.start()},a.D.config.startOffset||0);else{var b=!1,c=function(d){try{b||d.type==="readystatechange"&&a.g.G.readyState(document)!=="complete"||(b=!0,setTimeout(function(){a.start()},a.D.config.startOffset||0))}catch(e){}};a.g.G.addEventListener(document,"DOMContentLoaded", c,!1);a.g.G.addEventListener(document,"readystatechange",c,!1)}}function Vl(a){return J(a.Ea,a.D.aa.zh)?!1:J(a.Ea,a.D.aa.Cg)}function Fj(a){if(JSON&&JSON.stringify&&!a.Ef){a.Ef=!0;Ul(a);try{window.navigator.vendor&&window.navigator.vendor.indexOf("Apple")==0&&typeof document.hasStorageAccess=="function"&&document.requestStorageAccess().then(function(){},function(){a.gf=!1})}catch(b){}}}function Ij(a){a.pa?(a.zd=!0,rj(a)):a.pa=new je(a.zb,function(){a.zd=!0;rj(a)},a)} function Wl(a,b){a.oa&&(b?(a.fa.set("visible",!0),L(a.ba,"visibleInstalled",!0),a.oa.freeze=()=>Il(a)):(a.fa.jb("visible"),delete a.oa.freeze))}function Xl(a){Yl(a);Jj(a,ib(a.M),!1);const b=document.createElement(a.xe);b.src=a.D.config.visibleURL;b.crossOrigin="anonymous";document.head.appendChild(b);Wl(a,!0)} function Zl(a){window.addEventListener("message",function(b){var c=b.data;if(c&&typeof c=="object"&&c.namespace=="quantum"&&c.scope===a.sub)try{const d=b.data;if(d.type)switch(d.type){case "qm-visible":const e=d.action;if(e)switch(e){case "close":Wl(a,!1);break;case "install":Xl(a);break;case "start":Wl(a,!0)}else console.warn("Invalid visible action:",d);break;case "qm-recorder":Bd(a.g.se,d);break;default:L(a.ba,"unknown qframe message",{type:d.type},"error")}}catch(d){}},!1)} function $l(a){var b=[];document.visibilityState==="visible"?setTimeout(a,0,...b):a(...b)}function am(a,b){const c=()=>{try{const d=b.shift();d&&(d(),$l(c))}catch(d){Cj(a,d)}};$l(c)} async function Jj(a,b,c=!0,d=null){try{if(a.D.sc(),a.g.nc.B.sc(),a.fa.set("configReplayEnabled",a.D.config.replayEnabled),a.Ea=a.M.eb.qb,a.M.be(),Vl(a))jb(a.M,b),a.stop(y.Je);else if(Ii(a)){switch(a.ya){case y.NONE:break;case y.Je:case y.Se:a.stop(y.NONE);break;default:return}if(!a.Yb&&a.ub){await Nc(a.g.Z);nl(a);lj(a);qk(a,"input, select, option, textarea");a.R=new xg(a,a.Cf);a.R.load(a.Ea,{events:a.g.Ee.B});a.R.Ia=d;Sc(a.g.tb,document);ii(a.g.Da,document);Ni(a.g.Xa);vl(a);a.Ub=Ia();if(a.Na){const f= Kl(a);Fl(a,document);bm(a);ui(a,document.documentElement);a.g.cc.observe(document);Ql(a);Nl(a);Gl(a);const g=a.g.Z.W();a.Ed=await f.catch(h=>{a.xa("SYNC_ERR",h.message);return""});a.Ha.La("html-snapshot",null);a.g.mh.sample(.01,()=>{const h=a.g.Z.W();L(a.ba,"snapshotDuration",h-g)});a.rc=(new TextEncoder).encode(a.Ed).length;Ll(a);if(a.M.Ua!==b){a.M.Xb(b)&&(db(a.M).Xb=!0);jb(a.M,b);return}}a.R.bg();[a.B.va].includes(a.K)||window.opener!==null&&window!==window.opener||a.Re||(a.frameId=a.g.Z.W());wl(a, b);a.frameId&&nj(a,{method:"POST",url:"/v1/set-child-frame-id",body:{id:a.frameId}});c&&cm(a);zj(a,document.documentElement,"class",document.documentElement.className);a.D.config.disableErrorHooking||Ml(a);Fk(a);Pk(a);a.ih||(a.ih=setInterval(a.Nh.bind(a),1E3));a.Nc=setTimeout(()=>{if(a.ya===y.NONE){var f=a.g.G.innerText(document.body);typeof f=="string"&&f.length<100&&f.replace(/\s/g,"").length==0&&(f={flags:0,id:-46,ka:a.g.Z.W()},P(a.R,f,a.Ea));a.Nc=null}},6E3);a.oa.bg();try{window.dispatchEvent(new Event("QM-PAGE-READY"))}catch(f){}dm(a); qj(a);a.pa.ea=!0;ej(a,a.O,a.ea);var e=rk();e&&(a.Uc=e,V(a,"sd",e));Qj(a);Ki(a)}}else a.stop(y.Te)}catch(f){Cj(a,f)}}function em(){const a=window[String.fromCharCode(81,77,95,83,85,82,86,69,89,95,84,65,71,95,85,82,76)];if(typeof a!=="string"||a.length===0)return null;try{return(new URL(a,window.location.href)).href}catch(b){return null}} function fm(a){const b={ack:!0},c=a.g.$f;var d=a.ba,e=a.sub,f=new jh;do c.counter++;while(window[`__qm_voc_${c.counter}`]!==void 0);const g=new Mh({ba:d,sub:e,channel:f,oc:`__qm_voc_${c.counter}`,Ma:{GET:{v1:{connect:()=>{clearTimeout(h);g.connected=!0;Kh(g);a.Zd.then(()=>{g.Ga({method:"POST",url:"/v1/set-context",body:a.getContext()}).catch(k=>{L(a.ba,"voc: set-context push failed",{message:k.message},"warn")})});return b}}},POST:{v1:{voc:{show:k=>{[a.B.va].includes(a.K)||nj(a,{method:"POST",url:"/v1/voc/show", body:k});return b},dismiss:async k=>{[a.B.va].includes(a.K)||await nj(a,{method:"POST",url:"/v1/voc/dismiss",body:k});return b},destroy:async k=>{if(![a.B.va].includes(a.K)){try{a.Yb&&vk(a)}catch(l){}await nj(a,{method:"POST",url:"/v1/voc/destroy",body:k})}Lh(g);c.B.delete(g);return b},event:async k=>{const l=k?k.id:void 0;if(typeof l!=="number"||!Number.isInteger(l)||l>=0)throw Error("VocHandler:400");if(!a.R)throw Error("VocHandler:event-engine-unavailable");var m=k.value;m=m===void 0||m===null? "":String(m);var n=null;k=k.mde;k!==void 0&&k!==null&&(n=a.g.G.stringify(k,cc),n.length>a.D.config.maxMDELength&&(k={error:"Too much data"},n=a.g.G.stringify(k,cc)),n={hash:await Ub(n),value:k});P(a.R,{id:l,flags:0,ka:a.g.Z.W()},m,n);return b},encrypt:async k=>{if(!a.pa||!a.pa.supports||!a.zb)throw Error("VocHandler:encryption-unavailable");k=k&&k.v!==null?k.v:"";const l=await he(a.pa,k);if(!l&&k)throw Error("VocHandler:encryption-unavailable");return{encrypted:l,ekey:ie(a.pa),kid:a.pa.le||"",...b}}}}}}, timeout:a.D.config.sdkCommTimeout}),h=setTimeout(()=>{Lh(g);c.B.delete(g)},6E4);c.add(g);return g}function Yl(a){a=a.D.config;const b=["#overlay_container","[data-qm-freeze-exclude]"];for(let c=0;c"[native code]";if(window.customElements&& window.customElements.define){const c=Object.getPrototypeOf(window.customElements),d=c.define;c.define=function(e,f,g,...h){f=d.call(this,e,f,g,...h);a.customElements.add(e);K(a,{t:"CE",n:e});return f}}a.hg=!0}} function cm(a){a.Ha.addEventListener("start-event",async()=>{await oj(a,{method:"GET",url:"/v1/frame-id",body:{}},async(b,c)=>{({id:b}=b);b!==void 0&&(K(a,{t:"rnh",v:b}),await Hl(a,c.contentWindow,{method:"POST",url:"/v1/set-parent-id",body:{replayId:a.Ub,parentHitId:a.Ba}}))})},{once:!0})}function gm(a){const b=window.navigator.userAgent;return a.D.aa.ci.some(c=>c.test(b))} function hm(a){if(E(window,["webkit","messageHandlers","QMSDKv5"],!1)!==!1||gm(a))return!0;a=window.navigator.standalone;var b=window.navigator.userAgent.toLowerCase(),c=/safari/.test(b);if(/iphone|ipod|ipad/.test(b)){if(!a&&c||a&&!c)return!1;if(!a&&!c)return!0}else return!1}function im(a){if(gm(a))return!0;a=window.navigator.userAgent;return a.indexOf("Android")>-1&&(a.indexOf("; wv)")>-1||RegExp("Version/[0-9]+.[0-9]+").test(a))?!0:!1}function jm(a){return hm(a)||im(a)} async function km(a,b){a.fa.set("apiReplayEnabled",b);K(a,{t:"re",v:b});oj(a,{method:"POST",url:"/v1/enable-replay",body:{enabled:b}});b&&Rl(a,64)} async function lm(a,b){if([a.B.va].includes(a.K))try{b?(a.ra.set({[a.D.config.enabledCookie]:!b,expires:"Fri, 31 Dec 2099 23:59:59 GMT"}),a.stop(y.Te)):a.Of||(a.Of=!0,a.ra.jb({[a.D.config.enabledCookie]:!b}),await a.stop(y.NONE),fj(a,gb(a.M)).then(()=>oj(a,{method:"POST",url:"/v1/reset",body:{}})).catch(ua).finally(()=>{a.Of=!1}))}catch(c){}else nj(a,{method:"POST",url:`/v1/${b?"opt-out":"opt-in"}`,body:{}})} function Tl(a,b){if(b){if(a.Jc.length||a.Ic.length)a.O.push(...a.Jc),a.ea.push(...a.Ic),a.Jc.length=0,a.Ic.length=0,ej(a,a.O,a.ea);Rk(a)}else a.Jc.length=0,a.Ic.length=0,a.Hc.length=0}function mm(a){a.Re=!0;a.wd=!0;a.ra.jb({[a.D.config.enabledCookie]:!0})}function nm(a,b){const c=async()=>{await Hl(a,b,{method:"POST",url:"/v1/set-context",body:a.getContext()});await Hl(a,b,{method:"POST",url:"/v1/new-page",body:{}})};a.ha&&a.Ba?c():a.Ha.addEventListener("start-event",c,{once:!0})} function om(a){for(a=a.getRootNode();a.nodeType===Node.DOCUMENT_FRAGMENT_NODE;)a=a.host.getRootNode();return a===document} function pm(a){const b={ack:!0},c={GET:{v1:{connect:(e,f)=>{if(f.scope===a.sub)return b},"frame-id":()=>({id:a.frameId,...b})}},POST:{v1:{engaged:()=>{Ki(a);return b},"opt-out":()=>{lm(a,!0);return b},"opt-in":()=>{lm(a,!1);return b},"set-context":e=>{const {session:f,user:g,state:h,parentHitId:k,replayEnabled:l,contextId:m,userLogin:n,userFirstName:x,userLastName:r,userEmail:q,userIdentifier:w,userContextHashed:D}=e;if(f.length<=100&&g.length<=100){a.ha&&a.Ba&&(Ej(a,!0),Gj(a),gj(a),a.Ba=void 0); a.ha=f;a.za=g;a.Fd=k;h&&(a.fa.import(h),a.Hf=!0);typeof l==="boolean"&&(a.pf=l);a.Yc=m;Lk(a);Sl(a);if(n!==void 0||x!==void 0||r!==void 0||q!==void 0||w!==void 0)D?(a.Rd={userLogin:n||"",userFirstName:x||"",userLastName:r||"",userEmail:q||"",userIdentifier:w||""},a.Zd=Promise.resolve()):a.Zd=Promise.all([n?Ub(String(n)):Promise.resolve(""),x?Ub(String(x)):Promise.resolve(""),r?Ub(String(r)):Promise.resolve(""),q?Ub(String(q)):Promise.resolve(""),w?Ub(String(w)):Promise.resolve("")]).then(([C,t,p,u, z])=>{a.Rd={userLogin:C,userFirstName:t,userLastName:p,userEmail:u,userIdentifier:z}});a.Zd.catch(()=>{}).then(()=>{oj(a,{method:"POST",url:"/v1/set-context",body:a.getContext()})})}else L(a.ba,"sdkcomm: invalid context issued",{s:f,u:g},"error");return b},"child-ready":async(e,f)=>{({"from-frame":e}=e);e&&(e=await f.frame(),a.Pd.add(e));nm(a,f.sender);return b},"set-child-frame-id":async(e,f)=>{f=await f.frame();if(!f)return b;({id:e}=e);a.$.B(f).Cc=e;a.Yb||await new Promise(h=>a.Ha.addEventListener("start-event", h,{once:!0}));let g=5;do{const h=a.g.G.isConnected(f),k=om(f),l=a.$.da(f);if(h&&k&&l)return K(a,{t:"T",I:l,n:"qframe",v:e}),b;await new Promise(m=>setTimeout(m,50))}while(g--);L(a.ba,"qframe: unable to resolve nodeIdentifier",{attempts:5},"warn");return b},"set-parent-id":e=>{const {replayId:f,parentHitId:g}=e;a.Fd=g;K(a,{t:"chr",p:f});return b},"sub-frame-size":async(e,f)=>{const {w:g,h}=e;a.Na&&(e=await f.frame(),e=a.$.da(e),K(a,{t:"i+",w:g,Li:h,I:e}));return b},"new-session":()=>{[a.B.lc].includes(a.K)? nj(a,{method:"POST",url:"/v1/new-session",body:{}}):[a.B.va].includes(a.K)&&jj(a);return b},"enable-session":e=>{[a.B.lc].includes(a.K)?nj(a,{method:"POST",url:"/v1/enable-session",body:e}):[a.B.va].includes(a.K)&&Li(a,e.enabled);return b},"enable-replay":e=>{e=e.enabled;km(a,e);oj(a,{method:"POST",url:"v1/enable-replay",body:{enabled:e}});return b},"new-page":()=>{a.ya=y.NONE;fj(a,gb(a.M),!0,!1);return b},reset:()=>{a.Ha.addEventListener("start-event",()=>{oj(a,{method:"POST",url:"/v1/set-context", body:a.getContext()}).then(()=>oj(a,{method:"POST",url:"/v1/reset",body:{}}))},{once:!0});fj(a,gb(a.M),!0,!1);return b},stop:e=>{e=e.reason;a.stop(e);oj(a,{method:"POST",url:"/v1/stop",body:{reason:e}});return b},"page-freeze":async e=>{const {hoveredElement:f,...g}=await Il(a);return{dom:g,id:e.id,qf:a.frameId?a.frameId.toString():a.frameId,hoveredElement:f,...b}},voc:{hide:e=>{Nh(a.g.$f,{method:"POST",url:"/v1/voc/hide",body:e});return b},show:e=>{[a.B.va].includes(a.K)||nj(a,{method:"POST",url:"/v1/voc/show", body:e});return b},dismiss:e=>{[a.B.va].includes(a.K)||nj(a,{method:"POST",url:"/v1/voc/dismiss",body:e});return b},destroy:e=>{[a.B.va].includes(a.K)||nj(a,{method:"POST",url:"/v1/voc/destroy",body:e});return b},start:()=>{const e=em();e&&a.g.Ee.load(e);return b}}}}};var d=(new Hi(a)).sc();a.g.zc=new Dh({ba:a.ba,sub:a.sub,G:a.g.G,Ma:c,dc:a.dc,Kb:a.D.config.sdkCommRetryDelay,Hb:a.D.config.sdkCommRetryCount});a.g.bd=new Ei({ba:a.ba,sub:a.sub,Ma:d,Kb:a.D.config.sdkCommRetryDelay,Hb:a.D.config.sdkCommRetryCount}); d=hm(a);im(a)&&window.QMSDKv5&&(a.g.Nd=new Gh({Pa:window.QMSDKv5,ba:a.ba,sub:a.sub,G:a.g.G,timeout:a.D.config.sdkCommTimeout,Ma:c}));E(window,["webkit","messageHandlers","QMSDKv5"],!1)&&d&&(a.g.ie=new Hh({Pa:window.webkit.messageHandlers.QMSDKv5,ba:a.ba,sub:a.sub,timeout:a.D.config.sdkCommTimeout}));a.g.$f=new Oh} function qm(a,b={}){let {eventDefinitions:c,sub:d,publicKeyString:e,ipEncryption:f,eventNameMap:g,errorIds:h,adobe:k,surveys:l,flutter:m,...n}=b;"capture"in n&&(n=n.capture);a.Xa=m;a.zb=e;a.df=g||{};a.Jg=h||[];if(!window[`QuantumMetricAPI_${d}`])if(window.location.protocol=="data:")console.warn("QM blocked in data: protocol environments");else{a.oa=new rm(a);window.QuantumMetricAPI=a.oa;[`QuantumMetricAPI_${d}`].forEach(t=>{Object.defineProperty(window,t,{configurable:!1,enumerable:!0,get:()=>a.oa, set:()=>{a.xa("api_tamper",encodeURIComponent(Error().stack.toString()))}})});var x=!1,r=a.g.G.W()%100<10;b=new URLSearchParams(window.location.search);if(b.has("web-vitals-buffer")){x=!0;var q=b.get("web-vitals-buffer");zd.webVitalsSnapshotBuffer=parseInt(q,10)}q=typeof n.reportURL==="string"?n.reportURL:"";Lc(a.g.Z);a.D=new Fc(n,yd,zd,{Vd:"",Pb:"",Ud:"",ld:!1,Ze:"",$e:[ra],Vf:[],Cg:[],zh:[],uh:[],ae:"",fe:"",md:!1,Ii:[],nd:[],ag:[],th:[],Qd:[],Df:[],Ig:[],ad:"",Kg:[ta],ef:null,Gh:[],Eh:[],Bh:[], Ah:[],Hh:[],Fh:[],Dh:[],Ch:[],af:[],Sf:[],fc:[],Be:".loading,.loader,.spinner",ff:[],Qg:null,oh:null,Ab:[],sf:"",Mi:!0,Tf:[],Na:!0,rf:"",ac:new window.Set},Ai,zi,d,a.g.G);a.D.sc();a.ba=new Ig({G:a.g.G,D:a.D,sub:d,kf:()=>a.Yc});a.la=new uh(a.g.G,a.D,d,a.ba);var w=wb(a.D.config,d);try{var D=Ta(w);if(D.href!==w&&D.href!==w+"/"&&D.pathname!==w)throw Error("URL is malformed");}catch(t){console.error("QM: reportURL is malformed");return}a.fa=new Fg(a,a.D.config.sessionStoreNamespace,"sessionPersistenceMediums", a.g.G);a.D.fa=a.fa;a.kc=new Fg(a,a.D.config.userStoreNamespace,"userPersistenceMediums",a.g.G);D=()=>{let t={},p=null,u=0;const z=A=>{if(a.ha&&Object.keys(t).length){var W={s:a.ha,Q:5},F={...t};t={};p=null;switch(A){case 0:th(a.la,W,a.g.G.stringify(F)).then(()=>{u=0}).catch(()=>{t={...F,...t};!p&&u<5&&(u++,p=setTimeout(z,a.D.config.publishInterval,0))});break;case 1:rh(a.la,W,a.g.G.stringify(F))}}};a.g.G.addEventListener(document,"visibilitychange",()=>{document.visibilityState=="hidden"&&(clearTimeout(p), z(1))});return A=>{A&&typeof A==="object"&&A.t==="set"&&Ka(A.path)&&(t[A.path]=A.value,p||(p=setTimeout(z,a.D.config.publishInterval,0)))}};a.D.config.temp.enableKVS&&yg(a.fa.M,D());a.sub=d;Mc(a.g.Z,a.D,a.ba,a.sub);Ad(a.g.se);a.ra=new mh(a.g.G,a.D);a.g.nc=new ai(a,k);Vh(a.g.nc);a.g.cc=new yi(a,a.g.G,a.Ha,a.ba,a.D,a.$);a.g.Ee=new Bi(l||{},a.Ha,()=>fm(a).oc);a.M=new nb(a);pm(a);Zl(a);a.g.Xa=new Qi(a.D,a.g.ia,a.g.G,a.Ha,a.g.bd,a);q&&L(a.ba,"dep-cfg",q);r&&x&&L(a.ba,"wo","web-vitals-buffer");a.ah=new RegExp(la(a.Oh), "i");tl(a);Sk(a,a.D.config.sampleReplay);a.Cf=c||a.Cf;try{a.g.G.O(document,document.documentElement,window.NodeFilter.SHOW_ALL,null)}catch(t){}a.lg=new RegExp(window.location.host);try{++a.Pc;a.ta=window.performance;Hk(a);Sb(a.g.Aa);md(a.g.oa,a.D.config.apiDefinitions);try{const F=window.location.href;var C=a.fa.get("lru",null);a.D.aa.Qd.length&&(C?C!==window.location.href&&a.fa.jb("lru"):a.fa.set("lru",window.location.href));if(cb(a,"type")=="reload"||window.location.href==document.referrer||window.location.href== C)for(C=0;C=ba)return;a.fa.set(G,ca+1)}else a.fa.jb(G)}else a.fa.jb(["bfr"])}catch(F){console.warn("QM: issue handling `blockFrequentReloads` config.")}a.g.G.addEventListener(document,"visibilitychange",()=>{Z(a,()=>{document.visibilityState==="visible"&&oc(a.g.G);Hk(a)})},!0);function t(){Fj(a);--a.Pc}const p=b.get(a.D.config.bookmarkToolbarQueryParamName);try{if(typeof p== "string"){const F=p.replace(/-/g,"");F.length<=100?(a.ha=F,Lk(a)):console.warn("QM: bookmark recording ID is incorrect format")}}catch(F){console.error("QM: unable to initialize recorder:",F)}const u=window.QM_SDK_USER_ID||window.QM_USER_ID;u&&u.length<=100&&(a.za=u.toString());const z=window.QM_SDK_SESSION_ID||window.QM_SESSION_ID;z&&z.length<=100&&(a.ha=z.toString(),Lk(a));try{for(const F of a.D.config.nestedStitchingQueryParams){let R=F;const ba=Ta(window.location.href);let G=!1;R.reduce((ca,S, X)=>{try{if(ca){var N=null,ab=(new URLSearchParams(ca.search)).get(S);ab&&(N=Ta(ab));if(N&&X==R.length-1){const bb=new URLSearchParams(N.search),Oa=bb.get(a.D.config.queryParamForSessionId),v=bb.get(a.D.config.queryParamForUserId);if(Oa&&v&&Oa.length<=100&&v.length<=100)return a.ha=Oa,a.za=v,Lk(a),G=!0,null}return N}}catch(bb){}},ba);if(G)break}}catch(F){}if(a.D.config.queryParamForSessionId||a.D.config.queryParamForUserId){const F=new URLSearchParams(window.location.search),R=F.get(a.D.config.queryParamForSessionId), ba=F.get(a.D.config.queryParamForUserId);R&&ba&&R.length<=100&&ba.length<=100&&(a.ha=R,a.za=ba,Lk(a))}const A=p||a.fa.get("isRecording"),W=em()!==null;if(A||W)a.D.aa.nd=[/(?:)/],a.D.config.startOffset=0,Yl(a);if(!A)if(a.g.G.M(window)!==window||window.opener!==null&&window!==window.opener){const F=window.location.href;let R;a.D.aa.ag.length?(L(a.ba,"@deprecated: waitForSessionIdPathPatterns",!0,"warn"),R=J(F,a.D.aa.ag)?!0:!1):R=J(F,a.D.aa.th)?!1:!0;if(R&&!a.ha){const ba=window.opener?window.opener: a.g.G.M(window);a.g.zc.Ga(ba,{method:"GET",url:"/v1/connect",body:{}}).then(()=>{a.K=a.B.lc;a.ya=y.ud}).catch(G=>{L(a.ba,"sdkcomm: connect to parent timed out",{message:G.message},"warn")}).finally(()=>{t()});return}}else if(jm(a)){const F=hm(a),R=im(a),ba={iosWebview:F,androidWebview:R,waitForNativeCapture:a.D.config.waitForNativeCapture,autoDetectSDK:a.D.config.autoDetectSDK,useFallbackSDKSync:a.D.config.useFallbackSDKSync};if(window.QMSDKv5&&R){a.g.Nd.Ga({method:"GET",url:"/v1/connect",body:{sub:a.sub}}).then(()=> {a.K=a.B.td;a.wd=!0;a.ya=y.ud;a.D.aa.nd=[/(?:)/]}).catch(G=>{console.error(`Unable to connect with Android SDK: ${G}`)}).finally(()=>{t()});return}if(E(window,["webkit","messageHandlers","QMSDKv5"],!1)&&F){a.g.ie.Ga({method:"GET",url:"/v1/connect",body:{}}).then(()=>{a.K=a.B.vd;a.wd=!0;a.ya=y.ud;a.D.aa.nd=[/(?:)/]}).catch(G=>{console.error(`Unable to connect with iOS SDK: ${G}`)}).finally(()=>{t()});return}if(!a.D.config.autoDetectSDK){setTimeout(t,0);return}"QMFrameId"in window&&(a.frameId=window.QMFrameId); Object.defineProperty(window,"QMFrameId",{set:function(G){return a.frameId=G},get:function(){return a.frameId}});if(a.D.config.useFallbackSDKSync){L(a.ba,"QMSDK:usesFallbackSDKSync",ba,"warn");"QMFrameId"in window&&(a.frameId=window.QMFrameId);const G=ml(a);if(G&&a.frameId){a.ha=G;mm(a);Lk(a);setTimeout(t,0);return}let ca=0;const S=Math.floor(a.D.config.maxWaitForSessionIdRetries/250),X=setInterval(function(){ca++;ca>S&&(console.warn("QM:: Timed out trying to get session & frameId from SDK. Continuing on with new session"), X&&clearInterval(X),t());const N=ml(a);N&&a.frameId&&(mm(a),a.ha=N,Lk(a),setTimeout(t,0),X&&clearInterval(X))},250);return}(async function(){var G=window.QMSDK;let ca=window.QMSDKv4;if(!ca)try{ca=window.webkit.messageHandlers.QMSDKv4}catch(X){L(a.ba,"QMSDK:v4-not-present-ahead-of-time",{message:X.message,...ba},"error")}if(G||ca||a.D.config.waitForNativeCapture){if(G)if(G.sync){L(a.ba,"QMSDK:v2-sync",ba,"warn");var S=G.sync();typeof S==="string"&&(S=a.g.G.Ra(S))}else G.config&&G.config.reportURL|| (S=G);S||(S=await Promise.race([new Promise(X=>{window.addEventListener("qm_sdk_start",({detail:N})=>{X({sessionId:N.sessionId,userId:N.userId,frameId:N.frameId,config:{reportURL:N.config&&N.config.reportURL?N.config.reportURL:N.reportURL}})},{once:!0});window.dispatchEvent(new CustomEvent("qm_sdk_ready"))}),new Promise(async X=>{ca||(ca=await new Promise(N=>{Object.defineProperty(window,"QMSDKv4",{set:ab=>{N(ab)}})}));ca.start=N=>{X(N)};ca.postMessage(a.g.G.stringify({}))}),new Promise((X,N)=>{X= a.D.config.maxSDKWaitTime;setTimeout(N,X,Error(`SDK not loaded within ${X}ms.`))})]));if(S){G=S.sessionId;const X=S.userId,N=S.frameId;G&&X&&N?(mm(a),a.ha=G,a.za=X,a.frameId=window.QMFrameId=N,Lk(a),(S=S.config)&&S.reportURL&&J(S.reportURL,a.D.aa.uh)&&(zd.reportURL=a.D.config.reportURL=S.reportURL)):L(a.ba,"QMSDK:v4-bad-payload",{payload:a.g.G.stringify(S),...ba},"error")}else L(a.ba,"QMSDK:v4-possible-bad-payload",{"payload-type":typeof S,payload:a.g.G.stringify(S),...ba},"error")}})().catch(G=> {L(a.ba,"QMSDK:v4-sync-catch",{message:G.message,...ba},"error")}).then(t);return}t()}catch(t){Cj(a,t)}}} class sm{constructor(){this.fb=null;this.Nf=0;this.oa=this.zb=null;this.Td={};this.$b=null;this.je=this.tg=this.dg=this.Qc=this.Uf=this.Qf=0;this.Eb=[];this.Jh=this.Sg=this.Lg=this.xc=this.Xf=this.Uc=0;this.R=null;this.Cf={events:[]};this.Xa=null;this.Xc=new Zi;this.ea=[];this.O=[];this.Vb=!1;this.Jc=[];this.Ic=[];this.ta=null;this.Mh={0:"navigate",1:"reload",2:"back_forward"};this.Oe=this.yc=!1;this.Cb=null;this.If=!1;this.ig="QM: fetch aborted.";this.og=this.wh=this.nh=this.jg=this.sg=!1;this.lg= null;this.cg={connectStart:"cs",connectEnd:"ce",decodedBodySize:"dbs",domainLookupStart:"dls",domainLookupEnd:"dle",encodedBodySize:"ebs",fetchStart:"fs",initiatorType:"it",nextHopProtocol:"nhp",redirectStart:"rds",redirectEnd:"rde",requestStart:"rqs",responseStart:"rps",responseEnd:"rpe",secureConnectionStart:"scs",transferSize:"tz",workerStart:"ws"};this.Lh="connectStart connectEnd domainLookupStart domainLookupEnd fetchStart redirectStart redirectEnd requestStart responseStart responseEnd secureConnectionStart workerStart".split(" "); this.qa={connectStart:"a",connectEnd:"b",domComplete:"c",domContentLoadedEventStart:"d",domContentLoadedEventEnd:"e",domInteractive:"f",domainLookupStart:"g",domainLookupEnd:"h",fetchStart:"i",loadEventStart:"j",loadEventEnd:"k",redirectStart:"l",redirectEnd:"m",requestStart:"n",responseStart:"o",responseEnd:"p",secureConnectionStart:"q",transferSize:"r",encodedBodySize:"s",decodedBodySize:"t","first-paint":"u","first-contentful-paint":"v","largest-contentful-paint":"w","first-input-delay":"x","cumulative-layout-shift":"y"}; this.Yg="redirectStart redirectEnd fetchStart domainLookupStart domainLookupEnd connectStart connectEnd requestStart responseStart responseEnd domInteractive domContentLoadedEventStart domContentLoadedEventEnd domComplete loadEventStart loadEventEnd".split(" ");this.Ef=!1;this.gf=!0;this.Qe=!1;this.ya=y.NONE;this.jf=this.Wg=0;this.jh=!1;this.Lc=this.Tb=this.Vg=this.bh=null;this.Zf=0;this.vg=this.Pe=!1;this.Mc=[];this.Bc=[];this.qg=!1;this.pg=Infinity;this.Pc=0;this.ug=!1;this.Eg=[];this.ua=[];this.Ad= [];this.ca={};this.Sb=!1;this.Ea="";this.M=null;this.ha=void 0;this.Ie=this.ke=this.Of=this.Yb=!1;this.Ba=this.za=void 0;this.wd=this.Re=!1;this.B={va:0,lc:1,vd:2,td:3};this.pf=!0;this.dc=new Set;this.K=this.B.va;this.Jb=0;this.Kc=this.Id=this.Wc=this.$a=void 0;this.we=!1;this.Gd=void 0;this.Fc=this.Rc=this.Fg=0;this.eg=this.Ke=this.Oa=null;this.Gc=!1;this.xh=this.ec=0;this.Pd=new window.Set;this.Fd=null;this.Mb=this.jc=this.Zb=this.Lb=this.Vc=0;this.Sc=this.Hg=null;this.Ph={Bf:null,wf:null,gd:0, qd:0,Zc:0,Fe:0,Yd:0,ne:null};this.kb={Bf:null,wf:null,gd:0,qd:0,Zc:0,Fe:0,Yd:0,ne:null,Fb:null};this.Cd=[0,0];this.Rb=null;this.Tc=this.mg=0;this.yg=!1;this.vf=void 0;this.wg=this.Dd=this.Oc=null;this.yh=!1;this.Ed="";this.Ub=null;this.Hc=[];this.rc=0;this.zd=!1;this.Nc=this.pa=null;this.customElements=new window.Set;this.Ih=/\n|\r|\f|[\u0000-\u001F]+/g;this.Oh=[100,105,99,107,115,104,105,116,124,102,117,99,107,124,106,97,99,107,97,115,115,124,99,117,110,116,124,112,117,115,115,121,124,100,111,117, 99,104,101,124,115,108,117,116,124,98,97,115,116,97,114,100,124,119,104,111,114,101,124,98,105,116,99,104,124,97,115,115,104,111,108,101,124,115,116,117,112,105,100,124,100,117,109,98,97,115,115];this.Gi=[101,118,97,108];this.Qh=[115,99,114,105,112,116];this.xe=this.rg="";this.ah=null;this.ng=!1;this.Rh=0;this.kc=this.fa=this.wc=this.ih=null;this.hg=!1;this.vc=this.Hd=null;this.xg=this.fg=this.zg=!1;this.sub="";this.frameId=void 0;this.Yc=Ia();this.Di=Ia();this.Rd={};this.Zd=Promise.resolve();this.Ha= new jh;this.D=null;this.g={G:null,Z:null,animation:null,Aa:null,tb:null,Rg:null,oa:null,rd:null,se:null,supports:null,ia:null,zc:null,Nd:null,ie:null,bd:null,$f:null,Da:null,nc:null,mh:null,cc:null,Ee:null,Xa:null,console:null};this.g.G=new pc(this.Ha);this.$=new Si(this.g.G);this.g.Z=new Oc(this.g.G);this.g.animation=new vb(this,this.g.G,this.$);this.g.Aa=new ac(this);this.g.tb=new Zc(this);this.g.Rg=new ed(this);this.g.oa=new pd;this.g.rd=new Og(this);this.g.se=new Dd(this);this.g.supports=new ih; this.g.ia=new lh(this.g.G);this.g.zc=null;this.g.Nd=null;this.g.ie=null;this.g.Da=new ni(this);this.g.console=new Yd({G:this.g.G,xa:this.xa.bind(this),Xd:(b,c)=>pj(this,b,c)});this.xd={};this.uf=0;this.ra=null;this.g.mh=new Ph;console=this.g.G.wa.contentWindow.console;this.g.Oi=new vd(this);const a=String.fromCharCode(76,105,103,104,116,110,105,110,103,32,87,101,98,32,83,101,99,117,114,105,116,121);this.tf=!1;try{URL.revokeObjectURL(URL.createObjectURL(new Blob([],{type:"text/javascript"})))}catch(b){this.tf= b.message.includes(a)}this.la=null;this.yd=this.yd.bind(this);this.Dc=null;this.Bg=this.kg=!1;this.ba=null;this.Hf=!1;this.Sh=new Tg(this);this.df={};this.Jg=[];this.uc=null;this.Ha.addEventListener("mutations-observed",()=>{this.uc=null});this.da=Ea()}cb(a){if(a){if(a===document)return"^";if(a==document.documentElement)return"";if(a.nodeType==11)return(a=this.cb(a.host))?`${a} S#`:void 0;if(a.nodeType==1){var b=this.g.G.tagName(a).toLowerCase();if((b=="body"&&a===document.body||b=="head"||b=="html")&& (!a.getRootNode||this.g.G.getRootNode(a)===document))return"<"+b.toUpperCase();this.$.B(a)}if(this.g.G.parentNode(a)){var c=this.g.G.parentNode(a);b=this.cb(c);if(b!==void 0&&(a=this.g.G.Array.prototype.indexOf.call(c.childNodes,a),a!==void 0))return b+" "+a}}}removedNodes(a){const b=this.$.Pf.get(a)||this.$.da(a);if(b===void 0)return null;this.g.G.isConnected(a)&&this.$.Pf.get(a)!==this.$.da(a)||Ri(this.$,a,!0);return{t:"r",I:b}}addedNodes(a){const b={t:"a"};for(var c=a.nextSibling;c&&!this.$.da(c);)c= c.nextSibling;c?b[">"]=this.$.da(c):(c=this.g.G.parentNode(a))&&(b["p+"]=this.$.da(c));const {sb:d,Og:e}=uj(this,a);b.j=[d];this.ea.push(e);return b}get ub(){return this.Gc?!1:this.ya===y.Se?!0:this.ya===y.NONE}fh(a){if(a.type!="hidden"){const b=this.$.B(a);b.xb==void 0||b.xb==null?b.xb=gk(a):Sj(this,a)}}Nh(){var a=this;Z(a,function(){a.D.config.maskInputs||qk(a);if(a.D.config.checkBlankPages)try{typeof window.sessionStorage==="object"&&a.g.G.Storage.setItem.call(window.sessionStorage,"qm_last_period", a.g.Z.W().toString())}catch(b){}})}Ya(a){var b=this.$.B(a);return b.Ya?b.Ya:b.Ya={Mg:0,zf:this.g.Z.W(),name:tk(this,a)}}mf(a){var b={T:"B",u:this.Ea,t:this.Jb,v:this.g.Z.W()};this.frameId&&(b.QF=this.frameId);this.Ba&&(b.H=this.Ba);this.ha&&(b.s=this.ha);a===0&&this.za&&(b.U=this.za);this.Wc&&(b.f=this.Wc);b.P=this.Nf;this.la.B>0&&(b.E=this.la.B);b.N=a;a===0&&this.Fd&&(b.pid=this.Fd);return b}Fi(a){a=this.mf(a);a.Q=2;delete a.P;delete a.E;return a}Ei(a,b){a=this.mf(a);a.Q=1;a.Y=1;if(b==null?0:b.de)a.X= b.de;delete a.P;delete a.E;delete a.N;delete a.pid;return a}Nb(a){a=Y(this,a);return a==="input"||a==="textarea"?!0:null}Wb(a){const b=this.$.B(a);b.Wb===void 0&&(b.Wb=ok(this,a));return b.Wb}Za(a){var b=this.$.B(a);b.Za===void 0&&(a=a.nodeType!==1?null:ij(this,a)==="scrub"?!0:this.Ob(a),b.Za=a);return b.Za}Ob(a){var b=Y(this,a);b=b==="input"||b==="select"||b==="textarea";if(!b)return null;if(this.D.aa.ld||this.D.config.maskInputs&&b||this.Qa(a))return!0;if(b=a.getAttribute("autocomplete"))if(b=b.toLowerCase(), b==="cc-number"||b==="cc-csc")return!0;if(b=a.getAttribute("x-autocompletetype"))if(b=b.toLowerCase(),b==="cc-number"||b==="cc-csc")return!0;b=a.getAttribute("title");if(!(a.id||a.name||b||a.className))return null;for(let c=0;c=0&&(b.Qa=!0)}}catch(d){b.Qa=!1}return b.Qa}yd(){var a=this;if(!a.wc){var b=0;a.wc=setInterval(()=>{b++;b>40?clearInterval(a.wc):nj(this,{method:"POST",url:"/v1/sub-frame-size",body:{w:Yj(),h:rk()}}).finally(()=>{a.wc&&(clearInterval(a.wc),a.wc=null)})},500)}}start(){this.Qe||(this.Qe=!0,am(this,[()=>{this.rg=la(this.Gi);this.xe=la(this.Qh)},()=> {const a=window.QuantumMetricNetworkInterceptor;a&&(this.Dc=a)},()=>Ij(this),()=>{!this.yh&&this.D.config.hookFetch&&(Ik(this,typeof XMLHttpRequest!=="undefined","XMLHttpRequest must exist."),ll(this),this.yh=!0)},()=>jl(this),()=>hl(this),()=>{const a=window.navigator.userAgent,b=!!a.match(/WebKit/i);(a.match(/iPad/i)||a.match(/iPhone/i))&&b&&!a.match(/CriOS/i)&&this.g.G.M(window)!==window&&(this.yd(),this.g.G.addEventListener(window,"resize",this.yd,!0))},()=>{var a=window.navigator.userAgent|| window.navigator.vendor||window.opera;this.je=/uiwebview|(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substring(0, 4))?!0:!1},()=>Hj(this),()=>ul(this),()=>{this.oa.Ec()},()=>pk(this),()=>{if(window.Element.prototype.animate&&document.getAnimations){var a=this.g.animation;const h=document.getAnimations();try{for(let k=0;k",I:e,p:c,i:d});tb(b,l,d)}break}if(l instanceof window.CSSAnimation|| l.constructor.name==="CSSAnimation"){c=a;const m=l.effect&&l.effect.target;if(m){b=l.animationName;var f=ob(),g=c.$.da(m);c.ma.set(l,f);c.log({t:"wa",v:">",I:g,a:b,i:f});tb(c,l,f)}break}sb(a,l)}}catch(k){}ub(this.g.animation)}},()=>{const a=(new URLSearchParams(window.location.search)).get(this.D.config.visibleQueryParamName);if(a!==null&&a=="true"||this.fa.get("visible"))return Xl(this)},()=>{if((new URLSearchParams(window.location.search)).get(this.D.config.surveyPreview.queryParamName)===this.D.config.surveyPreview.queryParamValue){var a= fm(this).oc;const b=new URL(this.D.config.surveyPreview.url,window.location.href);b.searchParams.set("interface-handle",a);a=this.g.G.createElement(this.xe);a.src=b.href;a.crossOrigin="anonymous";document.head.appendChild(a)}},()=>{this.Bg=!0;this.yg=document.compatMode=="CSS1Compat";!kj(this)&&[this.B.va].includes(this.K)&&Jj(this,ib(this.M),!1);for(let b=0;b{if([this.B.va].includes(this.K)){Sl(this);const a=em();a&&this.g.Ee.load(a)}else nj(this,{method:"POST",url:"/v1/child-ready",body:{"from-frame":this.g.G.M(window)!==window}})}]))}xa(a,b){this.ba&&L(this.ba,a,{value:b,s:this.ha,h:this.Ba,u:this.Ea},"warning")}get Na(){const a=this.fa.get("apiReplayEnabled",null);return a!==null?a:this.pf===!1||this.fa.get("sampleReplayEnabled",null)=== !1||this.fa.get("configReplayEnabled",null)===!1?!1:!0}get ui(){const a=this.fa.get("apiReplayEnabled",null);return a!==null?a===!1?xa.gg:null:this.pf===!1?xa.gg:this.fa.get("sampleReplayEnabled",null)===!1?xa.Th:this.fa.get("configReplayEnabled",null)===!1?xa.Kh:null}stop(a){this.ya=a;if([y.NONE,y.Ne,y.Te,y.Je].includes(a)){const b=oj(this,{method:"POST",url:"/v1/stop",body:{reason:a}});a=this.g.bd?this.g.bd.Ga({method:"POST",url:`/v1/${a===y.NONE?"start":"stop"}`,body:{reason:a}}).catch(ua):Promise.resolve(); return Promise.all([b,a])}}ed(a){const b=this.$.B(a);if(b.ed===void 0)try{b.ed=a instanceof window.HTMLElement&&window.customElements.get(a.localName)}catch(c){b.ed=!1}return b.ed}getContext(){const a={session:this.ha,user:this.za,state:this.fa.get([],{}),parentHitId:this.Ba,contextId:this.Yc,replayEnabled:this.Na,...this.Rd,nativeSDK:this.wd};Object.keys(this.Rd).length&&(a.userContextHashed=!0);return a}} typeof window!=="undefined"&&(window.QuantumMetricInstrumentationStart=function(a){qm(new sm,a)});const tm=new window.Set([-82,-83,-84,-85,-86,-87,-88]),um={rage:-2,frustration:-5};function wd(a,b,c,d){if(a.J.ub){var e=a.K[b];if(e){typeof b==="number"?c={id:c.i,value:c.v,ts:c.t,i:c.i,v:c.v,ev:c.ev,name:a.J.df[c.i]||"UNKNOWN"}:b==="api"&&(c={url:c.u,method:c.m,status:c.st,responseTime:c.r,xhr:d});for(var f=0;f0){a.J.xa("unsupported_event",b.id);return}d!==null&&(f=a.J.g.G.stringify(d,cc),f.length>a.J.D.config.maxMDELength&&(d={error:"Too much data"},f=a.J.g.G.stringify(d,cc)),d={hash:await Ub(f),value:d});ng(e,b,c,d)&&qg(e,"timeline",a.J.g.Z.W())}else a.M.push({event:b,value:c,bc:d})}} class rm{constructor(a){function b(c,d="",e=50,f=200){let g=0,h=null,k=!1;return function(...l){h||(h=setTimeout(()=>{g=0;h=null;k=!1},f));g++;if(g>e)k||(k=!0,this.J.xa("RATE_LIM",`API calls to ${d} exceeded configured rate limits.`));else return c.apply(this,l)}}this.J=a;this.B=null;this.M=[];this.K=[];["sendEvent"].forEach(c=>{this[c]=b(this[c],c)})}Ec(){const a=window.QuantumMetricOnload;if(a)if(a instanceof Array)for(let b=0;b0){for(var a=0;a0){this.J.xa("unsupported_event",b.id);return}d.bc&&(d.bc={hash:await Ub(this.J.g.G.stringify(d.bc,cc)),value:d.bc});ng(this.J.R,b,d.value,d.bc)}this.M=[]}}enableReplay(a){typeof a!=="boolean"&&(console.warn("QM: enableReplay called with non-boolean value",a),L(this.J.ba,"enableReplay called with non-boolean value",!0));a=!!a;[this.J.B.va].includes(this.J.K)&&a!==this.J.Na&&km(this.J,a)}}var vm=!1;})(); window.QuantumMetricInstrumentationStart({"console":[{"pred":{"operator":"default"},"value":{}}],"dataEncryptWhiteList":[{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":["[data-qm-allow]","#destination-fb","#checkin-fb","#checkout-fb","#rooms-fb","#discount-fb","[class*=\"oupons\"] select","[class*=\"oupons\"] input"]}]}],"dataScrubBlackList":[{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":[".sensitive","input[autocomplete=\"cc-number\"]","input[autocomplete=\"cc-csc\"]","input[x-autocompletetype=\"cc-number\"]","input[x-autocompletetype=\"cc-csc\"]","[data-qm-block]",".guest-details_cardEnding font font",".guest-details_cardEnding",".guest-details_cardEnding span"]}]}],"dataScrubRE":[{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":[{"f":"i","p":"cvv|cvc|month|year|birth|cid|csc|cvn|sensitive|security|ccnumber|card.*identification|verification|^aba$|^tin$|routing|ssn|itin|account.*number|acct.*num|card.*num|card.*#|card.*no|cc.*num|nummer|n.m.ro|credito|信用卡|카드|カード番|Номер.*карты"},{"f":"i","p":"cardnumber"},{"f":"i","p":"exp-date"},{"f":"i","p":"CVV"},{"f":"i","p":"ccname"},{"f":"i","p":"travelDocumentNumber"},{"f":"i","p":"country-name"},{"f":"i","p":"zip"},{"f":"i","p":"idCard"},{"f":"i","p":"cardNumber"},{"f":"i","p":"expiryDate"},{"f":"i","p":"cardholderName"},{"f":"i","p":"js-input-birthday"},{"f":"i","p":"js-input-address"},{"f":"i","p":"js-input-postal-code"},{"f":"i","p":"js-input-province"},{"f":"i","p":"myb-city"},{"f":"i","p":"select-country"}]}]}],"elementVeinAttributes":[{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":["id","class","name","data-testid","data-target-price","data-target-gross-price","data-rate-code","data-target-content","aria-label","data-target-extra-id","data-target-has-extras-availability","data-target-view","data-target","name","type","data-cxo-mealplan-id","data-dimension","data-relativeprice","data-initial-base-value","value","data-quantum-user-action","data-pure-title"]}]}],"enabledCookie":[{"pred":{"operator":"default"},"value":"QuantumMetricEnabled_barcelo"}],"encryptScrubList":[{"pred":{"facet":"url","operator":"contains","value":"booking.barcelo.com"},"rules":[{"pred":{"operator":"default"},"value":[".myaccount-container_user button:not([aria-controls=\"myaccount-container-login\"])",".reservation-list-container_guestName font font",".reservation-list-container_guestEmail font font",".booking-summary-reservations_wrapper font font",".booking-summary-reservations_guestName",".booking-summary-reservations_guestEmail","booking-summary-reservations_guestPhone",".confirmation-container_section .message_container p span","[class*=\"banner-mybarcelo\"] h3"]}]},{"pred":{"facet":"url","operator":"contains","value":"reservation.barcelo.com"},"rules":[{"pred":{"operator":"default"},"value":["[class*=\"Avatar_initials\"]","[class*=\"AuthDropdown\"] p","[data-target-view=\"booking-confirmation\"] [class*=\"Header_container\"] p.mb-m","[data-target-view=\"booking-confirmation\"] [class*=\"Header_container\"] span","#__next > div.layout_appContainer__YbepL > main > section > div > div.GuaranteedByPayment_stayCard__2tLgw > div.Flex_flex__H_Tcu.mt-s > p:nth-child(3)","#__next > div.layout_appContainer__YbepL > main > section > div > div.GuaranteedByPayment_stayCard__2tLgw > div.Flex_flex__H_Tcu.mt-s > p:nth-child(2)","[class*=MyBarceloLoginButton] div"]}]},{"pred":{"facet":"url","operator":"contains","value":"barcelo.com"},"rules":[{"pred":{"operator":"default"},"value":["span[class*=\"name-myb\"]","[data-text*=\"[name]\"]",".c-myb-logo--heading .js-text-message b","[id*=\"action_insert_hotel\"] [id*=\"target\"] h2",".cards-1__right-name","[id='myb-name']","[id*='myb-']","[id='contact-birth']","[id='phone']","[id='select-country']"]}]},{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":["[data-qm-encrypt]"]}]}],"eventStoreURL":[{"pred":{"operator":"default"},"value":"https://barcelo-app.quantummetric.com/q3"}],"excludeRageCSS":[{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":[]}]}],"hashResourceURL":[{"pred":{"operator":"default"},"value":"https://ingesteu.quantummetric.com/resource-loader/barcelo"}],"hashUploadPercent":[{"pred":{"operator":"default"},"value":25}],"horizonEnabled":[{"pred":{"operator":"default"},"value":true}],"ingestBaseURL":[{"pred":{"operator":"default"},"value":"https://ingesteu.quantummetric.com"}],"maskInputs":[{"pred":{"operator":"default"},"value":false}],"maxXHRDataLength":[{"pred":{"operator":"default"},"value":120480}],"reportURL":[{"pred":{"operator":"default"},"value":"https://ingesteu.quantummetric.com/horizon/barcelo"}],"sessionCookieName":[{"pred":{"operator":"default"},"value":"QuantumMetricSessionID_barcelo"}],"sessionStoreNamespace":[{"pred":{"operator":"default"},"value":"QM_S_barcelo"}],"sessionTimeoutMinutes":[{"pred":{"operator":"default"},"value":31}],"spaLocationChangedTimeout":[{"pred":{"operator":"default"},"value":100}],"spaTransitionStartMarkerName":[{"pred":{"operator":"default"},"value":"QuantumMetricTransitionStart_barcelo"}],"spaTransitionStopMarkerName":[{"pred":{"operator":"default"},"value":"QuantumMetricTransitionStop_barcelo"}],"spinnerSelectorList":[{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":["[class*=spinner]:not([class*=hide]):not([class*=hidden]):not([class*=inactive]):not([class*=disabled])","[class*=loading]:not([class*=hide]):not([class*=hidden]):not([class*=inactive]):not([class*=disabled]):not([class*=mb]):not([class*=logo]):not([class*=mt]):not([class*=react-loading-skeleton]):not([class*=c-hotel-room-list__footer]):not([class*=translation]):not([class*=text])","[class*=loader]:not([class*=hide]):not([class*=hidden]):not([class*=inactive]):not([class*=disabled]):not([class*=ExtrasLoader]):not([class*=translation])",".react-loading-skeleton",".loading-dots"]}]}],"startImmediatePathPatterns":[{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":[{"f":"i","p":"/booking-confirmation"}]}]}],"targetCurrency":[{"pred":{"operator":"default"},"value":"EUR"}],"temp":[{"pred":{"operator":"default"},"value":{"enableKVS":true}}],"transformAttributesForNodesList":[{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":[{"attr":"href","re":{"f":"","p":"^.+$"},"rep":"","sel":"a"}]}]}],"userCookieName":[{"pred":{"operator":"default"},"value":"QuantumMetricUserID_barcelo"}],"userStoreNamespace":[{"pred":{"operator":"default"},"value":"QM_U_barcelo"}],"waitForSessionIdPathPatterns":[{"pred":{"operator":"default"},"rules":[{"pred":{"facet":"url","operator":"contains","value":"/process/checkin/IntermediateCheckin"},"value":[{"f":"i","p":"bahia-principe.com"}]},{"pred":{"operator":"default"},"value":[]}]}],"webComponentsSupport":[{"pred":{"operator":"default"},"value":true}],"xhrEncryptWhiteListDetails":[{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":[{"f":"i","p":"tealiumiq.com/barcelo"}]},{"pred":{"operator":"default"},"value":[{"f":"i","p":"coupons"}]}]}],"xhrHookWhiteListDetails":[{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":[{"f":"i","p":"tealiumiq.com/barcelo"}]},{"pred":{"operator":"default"},"value":[{"f":"i","p":"^(?!.*(siteintercept.qualtrics|pinterest|doubleclick|www.google-analytics.com|omtrdc|demdex|adrum))(?=.*barcelo).*"}]}]}],"xhrPerformanceWhitelistDetails":[{"pred":{"operator":"default"},"rules":[{"pred":{"operator":"default"},"value":[{"f":"i","p":"tealiumiq.com/barcelo"}]},{"pred":{"operator":"default"},"value":[{"f":"i","p":"^(?!.*(siteintercept.qualtrics|pinterest|doubleclick|www.google-analytics.com|omtrdc|demdex|adrum))(?=.*barcelo).*"}]}]}],"eventDefinitions":{"events":[{"f":0,"i":2,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try { return (!!window.utag_data && (!!window.utag_data.user_market_as || !!window.utag_data.booking_market)) || (!!window.location && !!window.location.search && (!!window.location.search.match(/market=([^&]+)/) && window.location.search.match(/market=([^&]+)/)[1]) || (!!window.location.search.match(/marketcampaign=([^&]+)/) && window.location.search.match(/marketcampaign=([^&]+)/)) || (!!document.querySelector("[data-market]") && !!document.querySelector("[data-market]").getAttribute("data-market"))); } catch(e){}}}]},{"t":"JSValue","v":[{"fn":function () {try { if ((!!window.location.search.match(/market=([^&]+)/) && window.location.search.match(/market=([^&]+)/)[1])) { return window.QMstringCleanerBarcelo(window.location.search.match(/market=([^&]+)/)[1]); } else if (!!window.location.search.match(/marketcampaign=([^&]+)/) && !!window.location.search.match(/marketcampaign=([^&]+)/)[1]) { return window.QMstringCleanerBarcelo(window.location.search.match(/marketcampaign=([^&]+)/)[1]); } else if (!!window.utag_data && !!window.utag_data.user_market_as) { return window.QMstringCleanerBarcelo(window.utag_data.user_market_as); } else if (!!window.utag_data && !!window.utag_data.booking_market) { return window.QMstringCleanerBarcelo(window.utag_data.booking_market); } else if (!!document.querySelector("[data-market]") && !!document.querySelector("[data-market]").getAttribute("data-market")) { return window.QMstringCleanerBarcelo(document.querySelector("[data-market]").getAttribute("data-market")); } } catch (e) { }}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":3,"evalAlways":false,"m":0,"s":1,"u":"(barcelo\\.com\\/[^\\/]+\\/[^\\/]+\\/$|(booking|reservation).barcelo.com\\/((?:\\?[^\\/]+)?$|addons|extras|personal-data|choose-payment|checkout))","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return (!!window.location && !!window.location.search && !!window.location.search.match(/hotel=([^&]+)/) && !!window.location.search.match(/hotel=([^&]+)/)[1]) || (!!window.utag_data && !!window.utag_data.hotel_id && window.utag_data.hotel_id !== "null");}}]},{"t":"JSValue","v":[{"fn":function () {try { if (!!window.location && !!window.location.search && !!window.location.search.match(/hotel=([^&]+)/) && !!window.location.search.match(/hotel=([^&]+)/)[1]) { return window.location.search.match(/hotel=([^&]+)/)[1]; } else if (!!window.utag_data && !!window.utag_data.hotel_id) { return window.utag_data.hotel_id; } } catch(e) {}}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":4,"evalAlways":false,"m":0,"s":1,"u":"(barcelo\\.com\\/[^\\/]+\\/[^\\/]+\\/$|(booking|reservation).barcelo.com\\/((?:\\?[^\\/]+)?$|addons|extras|personal-data|choose-payment|checkout))","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.location && !!window.location.search && !!window.location.search.match(/arrive=([^&]+)/) && !!window.location.search.match(/arrive=([^&]+)/)[1];}}]},{"t":"JSValue","v":[{"fn":function () {return window.location.search.match(/arrive=([^&]+)/)[1];}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":true,"i":5,"f":0,"m":0,"s":1,"u":"(barcelo\\.com\\/[^\\/]+\\/[^\\/]+\\/$|(booking|reservation).barcelo.com\\/((?:\\?[^\\/]+)?$|addons|extras|personal-data|choose-payment|checkout))","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.location && !!window.location.search && !!window.location.search.match(/depart=([^&]+)/) && !!window.location.search.match(/depart=([^&]+)/)[1];}}]},{"t":"JSValue","v":[{"fn":function () {return window.location.search.match(/depart=([^&]+)/)[1];}}]}]}},{"f":0,"i":6,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.order_id_udo || !!window.location && !!window.location.search && (!!window.location.search.match(/itineraryNumber=([^&]+)/) && !!window.location.search.match(/itineraryNumber=([^&]+)/)[1]);}}]},{"t":"JSValue","v":[{"fn":function () {if (!!window.utag_data && !!window.utag_data.order_id) { return window.utag_data.order_id_udo; } else if (!!window.location.search.match(/itineraryNumber=([^&]+)/) && !!window.location.search.match(/itineraryNumber=([^&]+)/)[1]) { return window.location.search.match(/itineraryNumber=([^&]+)/)[1]; }}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":7,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.booking_total_currency || !!window.utag_data.currency;}}]},{"t":"JSValue","v":[{"fn":function () {if (!!window.utag_data.currency) { return window.QMstringCleanerBarcelo(window.utag_data.currency); } else if (!!window.utag_data.booking_total_currency) { return window.QMstringCleanerBarcelo(window.utag_data.booking_total_currency); }}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":8,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.pagecategorization;}}]},{"t":"JSValue","v":[{"fn":function () {if (window.location.href.match(/identity.barcelo.com\/identityb2c\/CIAMB2CLogin/)) { var qm_ref_ciam = null; if (this.api.getPrevEventData(8) && this.api.getPrevEventData(8).value) { if (document.referrer.match(/booking.barcelo.com/)) { qm_ref_ciam = "Sabre"; } else if (document.referrer.match(/reservation.barcelo.com/)) { qm_ref_ciam = "CBE"; } else if (document.referrer.match(/www.barcelo.com/)) { qm_ref_ciam = "CMS"; } var qm_prev_page_cat = this.api.getPrevEventData(8).value; // If sabre tag deployed we cannot know the prev page cat as the tag wont be deployed in every page of Sabre if (qm_ref_ciam === "Sabre") { this.api.sendEvent(35, 0, qm_ref_ciam); } else if (qm_ref_ciam) { this.api.sendEvent(35, 0, qm_ref_ciam + '_' + qm_prev_page_cat); } } } return window.QMstringCleanerBarcelo(window.utag_data.pagecategorization);}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":9,"evalAlways":false,"m":1,"s":2,"u":"reservation.barcelo.com/choose-payment","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"ContinueButton_buttonWrapper\"] [class*=\"Button_button\"],[class*=\"ContinueButton_buttonWrapper\"]:has([class*=\"Button_button\"]),[class*=\"ContinueButton_buttonWrapper\"] [class*=\"Button_button\"] *,[class*=\"ContinueButton_buttonWrapper\"]:has([class*=\"Button_button\"]) *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { for (var index = 0; index < document.querySelectorAll('[class*="PaymentMethods_paymentOptionsContainer"] input').length; index++) { if (document.querySelectorAll('[class*="PaymentMethods_paymentOptionsContainer"] input')[index].checked) { var clickedPaymentMethod = document.querySelectorAll('[class*="PaymentMethods_paymentOptionsContainer"] input')[index].getAttribute('id').replaceAll("_"," "); this.api.setSessionVar("qm_payment_method", clickedPaymentMethod); return clickedPaymentMethod || this.api.getSessionVar("qm_payment_method"); } } } catch(e){}}}]}]},"x":"QCE","sessionInfoReq":true,"excludeBlank":true},{"f":36,"i":11,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.user_email && !!window.QMstringCleanerBarcelo;}}]},{"t":"JSValue","v":[{"fn":function () {return window.QMstringCleanerBarcelo(window.utag_data.user_email);}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":12,"evalAlways":false,"m":0,"s":1,"u":"(barcelo\\.com\\/[^\\/]+\\/[^\\/]+\\/$|(booking|reservation).barcelo.com\\/((?:\\?[^\\/]+)?$|addons|extras|personal-data|choose-payment|checkout))","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.hotel_name;}}]},{"t":"JSValue","v":[{"fn":function () {return window.QMstringCleanerBarcelo(window.utag_data.hotel_name);}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":14,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.page_language_code;}}]},{"t":"JSValue","v":[{"fn":function () {return window.QMstringCleanerBarcelo(window.utag_data.page_language_code);}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":true,"i":15,"f":0,"m":0,"s":1,"u":".*","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.page_section && !!window.QMstringCleanerBarcelo;}}]},{"t":"JSValue","v":[{"fn":function () {if (!!window.utag_data.page_section && !!window.utag_data.page_sub_section) { return window.QMstringCleanerBarcelo(window.utag_data.page_section + '_' + window.utag_data.page_sub_section); } else if (!!window.utag_data.page_section) { return window.QMstringCleanerBarcelo(window.utag_data.page_section); }}}]}]}},{"f":0,"i":16,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"V","v":[""]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":true,"evalAlways":true,"excludeBlank":false,"i":17,"f":0,"m":0,"s":2,"u":"reservation\\.barcelo\\.com","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-error=\"availability generic error\"]"]},{"t":"JSValueEx","v":[{"fn":function () {try { if (!!window.location && !!window.location.search && !!window.location.search.match(/hotel=([^&]+)/) && !!window.location.search.match(/hotel=([^&]+)/)[1]) { return window.location.search.match(/hotel=([^&]+)/)[1]; } else if (!!window.utag_data && !!window.utag_data.hotel_id) { return window.utag_data.hotel_id; } }catch (e) {}}}]}]}},{"f":0,"i":18,"evalAlways":false,"m":0,"s":1,"u":"reservation.barcelo.com\\/(?:\\?[^\\/]+)?$","v":{"t":"HE","v":[]},"x":"QHE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":19,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/personal-data","v":{"t":"HE","v":[]},"x":"QHE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":20,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/choose-payment","v":{"t":"HE","v":[]},"x":"QHE","sessionInfoReq":false,"excludeBlank":false},{"f":1,"i":21,"evalAlways":true,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/booking-confirmation","v":{"t":"E","v":[{"t":"JSValueEx","v":[{"fn":function () {return !!this.api && !!this.api.getCartValue();}}]},{"t":"CV","v":[{"t":"JSValueEx","v":[{"fn":function () {try { // Last payment method click if (this.api.getPrevEventData(9) && this.api.getPrevEventData(9).value) { this.api.sendEvent(26, 0, this.api.getPrevEventData(9).value); } // Booking Dates if (window.location && window.location.search && window.location.search.match(/arrive=([^&]+)/) && window.location.search.match(/arrive=([^&]+)/)[1] && window.location.search.match(/depart=([^&]+)/) && window.location.search.match(/depart=([^&]+)/)[1]) { this.api.sendEvent(78, 0, window.location.search.match(/arrive=([^&]+)/)[1] + "_" + window.location.search.match(/depart=([^&]+)/)[1]); } // Hotel Location if (this.api.getPrevEventData(73) && this.api.getPrevEventData(73).value) { this.api.sendEvent(79, 0, this.api.getPrevEventData(73).value); } // Hotel ID if (window.utag_data && window.utag_data.hotel_id) { this.api.sendEvent(23, 0, window.utag_data.hotel_id); } // Hotel Name if (window.utag_data && window.utag_data.hotel_name && window.QMstringCleanerBarcelo) { this.api.sendEvent(24, 0, window.QMstringCleanerBarcelo(window.utag_data.hotel_name)); } // Room Type - basis if (window.utag_data && window.utag_data.booked_rooms && window.utag_data.booked_rooms[0] && window.utag_data.booked_rooms[0].room_type && window.utag_data.booked_rooms[0].room_board_basis) { this.api.sendEvent(25, 0, window.QMstringCleanerBarcelo(window.utag_data.booked_rooms[0].room_type + " - " + window.utag_data.booked_rooms[0].room_board_basis)); } // Rates if (window.utag_data && window.utag_data.booking_room_rate_type && window.utag_data.booking_room_rate_type[0] && window.QMstringCleanerBarcelo) { this.api.sendEvent(37, 0, window.QMstringCleanerBarcelo(window.utag_data.booking_room_rate_type[0])); } // Market if (this.api.getPrevEventData(2) && this.api.getPrevEventData(2).value) { this.api.sendEvent(90, 0, this.api.getPrevEventData(2).value); } return parseFloat(this.api.getCartValue()/ 100).toFixed(2); } catch(e){ this.api.sendEvent(13, 0, "QM - CBE Conversion" + e); }}}]}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":64,"i":22,"evalAlways":false,"m":0,"s":2,"u":"reservation.barcelo.com\\/(extras|personal-data|choose-payment)","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.booking_user_currency_price;}}]},{"t":"CV","v":[{"t":"JSValue","v":[{"fn":function () {try { if (window.utag_data.booking_user_currency_price.toString().match(/\.\d{0,1}(\D|$)|\.\d{3,}/)) { window.localStorage.setItem("qm_cart_val",window.utag_data.booking_user_currency_price.toString().replace(/\.\d+/, ".00")); return window.utag_data.booking_user_currency_price.toString().replace(/\.\d+/, ".00"); } else { window.localStorage.setItem("qm_cart_val",window.utag_data.booking_user_currency_price); return window.utag_data.booking_user_currency_price; } } catch(e){ this.api.sendEvent(13, 0, 'CBE - Booking Value: ' + e); }}}]},{"t":"JSValueEx","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.booking_user_currency && window.utag_data.booking_user_currency;}}]}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":23,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/booking-confirmation","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"V","v":[""]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":24,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/booking-confirmation","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"V","v":[""]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":25,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/booking-confirmation","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"V","v":[""]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":26,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/booking-confirmation","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"V","v":[""]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":27,"evalAlways":false,"m":0,"s":1,"u":"booking.barcelo.com\\/(?:\\?[^\\/]+)?$","v":{"t":"HE","v":[]},"x":"QHE","sessionInfoReq":false,"excludeBlank":false},{"f":64,"i":28,"evalAlways":false,"m":0,"s":2,"u":"booking.barcelo.com\\/(addons|checkout)","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.booking_user_currency_price;}}]},{"t":"CV","v":[{"t":"JSValue","v":[{"fn":function () {try { if (window.utag_data.booking_user_currency_price.toString().match(/\.\d{0,1}(\D|$)|\.\d{3,}/)) { return window.utag_data.booking_user_currency_price.toString().replace(/\.\d+/, ".00"); } else { return window.utag_data.booking_user_currency_price; } } catch(e){ this.api.sendEvent(13, 0, 'CBE - Booking Value: ' + e); }}}]},{"t":"JSValueEx","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.booking_user_currency && window.utag_data.booking_user_currency;}}]}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":29,"evalAlways":false,"m":0,"s":1,"u":"booking\\.barcelo\\.com/checkout","v":{"t":"HE","v":[]},"x":"QHE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":30,"evalAlways":false,"m":1,"s":1,"u":"booking\\.barcelo\\.com/checkout","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":[".guest-info-container_bottomContinue button,div.guest-info-container_bottomContinue button span,.guest-info-container_bottomContinue button_group,.mobile-footer_container .mobile-footer_noDelay,[datatest=\"complete-booking\"],[class*=\"mobile-footer_container\"] [class*=\"mobile-footer_oneButton\"] [class*=\"button_btn\"],.guest-info-container_bottomContinue button *,div.guest-info-container_bottomContinue button span *,.guest-info-container_bottomContinue button_group *,.mobile-footer_container .mobile-footer_noDelay *,[datatest=\"complete-booking\"] *,[class*=\"mobile-footer_container\"] [class*=\"mobile-footer_oneButton\"] [class*=\"button_btn\"] *"]}]},{"t":"V","v":[""]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":1,"i":31,"evalAlways":false,"m":0,"s":1,"u":"booking\\.barcelo\\.com/confirm","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!this.api && !!this.api.getCartValue();}}]},{"t":"CV","v":[{"t":"JSValue","v":[{"fn":function () {try { // Hotel ID if (window.utag_data.hotel_id) { this.api.sendEvent(23, 0, window.utag_data.hotel_id); } // Hotel Name if (window.utag_data.hotel_name && window.QMstringCleanerBarcelo) { this.api.sendEvent(24, 0, window.QMstringCleanerBarcelo(window.utag_data.hotel_name)); } // Room Type if (window.utag_data.booking_room_type && window.QMstringCleanerBarcelo) { this.api.sendEvent(25, 0, window.QMstringCleanerBarcelo(window.utag_data.booking_room_type)); } // Rates if (window.utag_data.booking_rate_long_name && window.utag_data.booking_rate_long_name[0] && window.QMstringCleanerBarcelo) { this.api.sendEvent(38, 0, window.QMstringCleanerBarcelo(window.utag_data.booking_rate_long_name[0])); } return parseFloat(this.api.getCartValue()/ 100).toFixed(2); } catch(e){}}}]}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":36,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try { var qm_user_status = null; // SABRE if (window.location.href.match(/booking.barcelo.com/)) { if (!document.querySelector('[aria-controls="myaccount-container-login"]')) { qm_user_status = true; } // CBS } else if (window.location.href.match(/reservation.barcelo.com/)) { if (document.querySelector('div[class*="Avatar_avatar"]')) { qm_user_status = true; } // BARCELO } else { if (document.querySelector('span.js-name-myb')) { qm_user_status = true; } } if (qm_user_status) { return true; } } catch(e) { this.api.sendEvent(13, 0, "Logged user events: " + e); }}}]},{"t":"JSValue","v":[{"fn":function () {try { var qm_user_status_place = null; // SABRE if (window.location.href.match(/booking.barcelo.com/)) { if (!document.querySelector('[aria-controls="myaccount-container-login"]')) { qm_user_status_place = 'Sabre'; } // CBS } else if (window.location.href.match(/reservation.barcelo.com/)) { if (document.querySelector('div[class*="Avatar_avatar"]')) { qm_user_status_place = 'CBE'; } // BARCELO } else { if (document.querySelector('span.js-name-myb')) { qm_user_status_place = 'Barcelo'; } } if (qm_user_status_place) { return qm_user_status_place; } } catch(e) { this.api.sendEvent(13, 0, "Logged user events: " + e); }}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":37,"f":0,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/booking-confirmation","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"V","v":[""]}]}},{"f":0,"i":39,"evalAlways":false,"m":0,"s":1,"u":"(addons|extras|personal-data|choose-payment|checkout)","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.booking_room_type || !!window.utag_data.booked_rooms && !!window.utag_data.booked_rooms[0] && !!window.utag_data.booked_rooms[0].room_board_basis;}}]},{"t":"JSValue","v":[{"fn":function () {try { if (!!window.utag_data.booking_room_type) { return window.QMstringCleanerBarcelo(window.utag_data.booking_room_type); } else if (!!window.utag_data.booked_rooms && !!window.utag_data.booked_rooms[0] && !!window.utag_data.booked_rooms[0].room_board_basis) { return window.QMstringCleanerBarcelo(window.utag_data.booked_rooms[0].room_board_basis); } } catch(e){}}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":40,"evalAlways":false,"m":0,"s":1,"u":"(addons|extras|personal-data|choose-payment|checkout)","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.booking_rate_long_name && !!window.utag_data.booking_rate_long_name[0] || !!window.utag_data.booking_room_rate_type && !!window.utag_data.booking_room_rate_type[0];}}]},{"t":"JSValue","v":[{"fn":function () {try { if (!!window.utag_data.booking_rate_long_name && !!window.utag_data.booking_rate_long_name[0]) { return window.QMstringCleanerBarcelo(window.utag_data.booking_rate_long_name[0]); } else if (!!window.utag_data.booking_room_rate_type && !!window.utag_data.booking_room_rate_type[0]) { return window.QMstringCleanerBarcelo(window.utag_data.booking_room_rate_type[0]); } } catch(e) {}}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":41,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_category_originator;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_category_originator;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":42,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_category_closer;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_category_closer;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":43,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_category_influencer;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_category_influencer;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":44,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_category_path;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_category_path;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":45,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_closer;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_closer;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":46,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_closer_credit;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_closer_credit;}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":47,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_closer_udo;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_closer_udo;}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":48,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_influencer;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_influencer;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":49,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_influencer_credit;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_influencer_credit;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":50,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_originator;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_originator;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":51,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_originator_credit;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_originator_credit;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":true,"i":52,"f":0,"m":0,"s":2,"u":".*","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_path;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_path;}}]}]}},{"f":0,"i":53,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_path_piped;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_path_piped;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":54,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.channel_path_udo;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.channel_path_udo;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":40,"i":55,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.sessionStorage && !!window.sessionStorage.getItem("contextHub.profile") && !!JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user && !!JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user["myb-name"];}}]},{"t":"JSValue","v":[{"fn":function () {return JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user["myb-name"];}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":48,"i":56,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.sessionStorage && !!window.sessionStorage.getItem("contextHub.profile") && !!JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user && !!JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user["myb-surname"];}}]},{"t":"JSValue","v":[{"fn":function () {return JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user["myb-surname"];}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":57,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.sessionStorage && !!window.sessionStorage.getItem("contextHub.profile") && !!JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user && !!JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user["myb-level"];}}]},{"t":"JSValue","v":[{"fn":function () {return JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user["myb-level"];}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":58,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.sessionStorage && !!window.sessionStorage.getItem("contextHub.profile") && !!JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user && !!JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user["myb-identifier"];}}]},{"t":"JSValue","v":[{"fn":function () {return JSON.parse(window.sessionStorage.getItem("contextHub.profile")).user["myb-identifier"];}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":59,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-template]"]},{"t":"JSValueEx","v":[{"fn":function () {return document.querySelector('[data-template]').getAttribute('data-template');}}]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":60,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-master-page-id]"]},{"t":"JSValueEx","v":[{"fn":function () {return document.querySelector('[data-master-page-id]').getAttribute('data-master-page-id');}}]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":61,"evalAlways":true,"m":0,"s":1,"u":"booking\\.barcelo\\.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["section.message_type-warning .message_heading span,section.message_type-warning .message_heading span"]},{"t":"SelectorText","v":["section.message_type-warning .message_heading span span,section.message_type-warning .message_heading span"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":62,"evalAlways":true,"m":0,"s":1,"u":"booking\\.barcelo\\.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".message_type-error p:not(.message_heading) span,section.message_type-error .message_content span"]},{"t":"SelectorText","v":[".message_type-error p:not(.message_heading) span,section.message_type-error .message_content span"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":63,"evalAlways":false,"m":0,"s":1,"u":"booking\\.barcelo\\.com","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try { return !!document.querySelector('span.breadcrumbs_text') && !!document.querySelector('span.breadcrumbs_text').innerText.match(/#/) || !!document.querySelector('span[class*="criteria-button"] span') && !!document.querySelector('span[class*="criteria-button"] span').innerText.match(/#/) || !!document.querySelector('div.filter-bar_filterLink a span') && !!document.querySelector('div.filter-bar_filterLink a span').innerText.match(/#/) || !!document.querySelector('.reservation-cart-container_checkOut b span') && !!document.querySelector('.reservation-cart-container_checkOut b span').innerText.match(/#/); } catch(e) {}}}]},{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.pagecategorization && window.utag_data.pagecategorization;}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":64,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try { return !!window.location.href.match(/(pagenotfounderror|sadsad)/) || !!document.querySelector("[id*='error_404']") || !!document.title.match("Page Not Found Error"); } catch(e) {}}}]},{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.pagecategorization && window.utag_data.pagecategorization;}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":65,"evalAlways":true,"m":0,"s":1,"u":"barcelo.booking.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".c-callmenow__modal-form"]},{"t":"JSValueEx","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.pagecategorization && window.utag_data.pagecategorization;}}]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":66,"evalAlways":true,"m":1,"s":2,"u":"booking .barcelo.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"criteria-promo-codes_container\"][class*=\"message_type-error\"],[class*=\"criteria-promo-codes_container\"] [class*=\"message_type-error\"] [class*=\"message_heading\"][class*=\"app_heading2\"] "]},{"t":"JSValueEx","v":[{"fn":function () {try { if (document.querySelector('[class*="promo"] .message_type-error') && document.querySelector('[class*="promo"] input') && document.querySelector('[class*="promo"] input').value) { return document.querySelector('[class*="promo"] input').value; } else if (document.querySelector('[class*="coupon"] .message_type-error p.message_heading') && document.querySelector('[class*="coupon"] input') && document.querySelector('[class*="coupon"] input').value) { return document.querySelector('[class*="coupon"] input').value; } } catch(e) {}}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":true,"excludeBlank":false,"i":67,"f":0,"m":0,"s":1,"u":"reservation.barcelo.com","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*='Error_textContainer']"]},{"t":"JSValueEx","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.pagecategorization && window.utag_data.pagecategorization;}}]}]}},{"f":0,"i":69,"evalAlways":true,"m":0,"s":1,"u":"reservation\\.barcelo\\.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"Modal_modal\"] h2"]},{"t":"SelectorText","v":["[class*=\"Modal_modal\"] h2"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"sessionInfoReq":true,"evalAlways":true,"excludeBlank":true,"i":70,"f":0,"m":1,"s":2,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[id=\"login:loginForm:serverErrors\"],[class*=\"Login_container\"] [class*=\"Text_color-support-error-dark\"],.myb-user-login__form-error[style*=flex]"]},{"t":"SelectorText","v":["[id=\"login:loginForm:serverErrors\"] span,[class*=\"Login_container\"] [class*=\"Text_color-support-error-dark\"],.myb-user-login__form-error[style*=flex]"]}]}},{"f":0,"i":71,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"JSValue","v":[{"fn":function () {0;}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":72,"evalAlways":false,"m":1,"s":1,"u":"www\\.barcelo\\.com","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["button#hotelinfo_cta_booking,button#hotelinfo_cta_booking span,.c-hotel-room-list a.c-cta,button#hotelinfo_cta_booking *,button#hotelinfo_cta_booking span *,.c-hotel-room-list a.c-cta *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { if (!!window.QMstringCleanerBarcelo && !!window.utag_data && !!window.utag_data.pagecategorization && window.utag_data.pagecategorization === "hotel>home>" && !!window.utag_data.hotel_name) { return (window.QMstringCleanerBarcelo(window.utag_data.hotel_name)); } } catch(e){}}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":73,"evalAlways":false,"m":0,"s":1,"u":"(barcelo\\.com\\/[^\\/]+\\/[^\\/]+\\/$|(booking|reservation).barcelo.com\\/((?:\\?[^\\/]+)?$|addons|extras|personal-data|choose-payment|checkout))","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try { return !!window.utag_data && !!window.utag_data.hotel_division && !!window.utag_data.hotel_country && !!window.utag_data.hotel_province && !!window.QMstringCleanerBarcelo; } catch(e){}}}]},{"t":"JSValue","v":[{"fn":function () {try { return window.QMstringCleanerBarcelo(window.utag_data.hotel_division + "_" + window.utag_data.hotel_country + "_"+ window.utag_data.hotel_province); } catch(e){}}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":75,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[id*=\"fastbooking_cta_booking\"],[id*=\"fastbooking_cta_booking\"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { if (!!document.querySelector('[id*="fastbooking_cta_booking"]') && !!document.querySelector('[id*="fastbooking_cta_booking"]').getAttribute('id') && !!document.querySelector('[id*="fastbooking_cta_booking"]').getAttribute('id').match(/_([^_]+)$/) && !!document.querySelector('[id*="fastbooking_cta_booking"]').getAttribute('id').match(/_([^_]+)$/)[1]) { return document.querySelector('[id*="fastbooking_cta_booking"]').getAttribute('id').match(/_([^_]+)$/)[1]; } } catch(e){}}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":76,"evalAlways":false,"m":1,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"JSValue","v":[{"fn":function () {return false;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":77,"evalAlways":false,"m":0,"s":2,"u":"reservation.barcelo.com\\/(extras|personal-data|choose-payment)","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.booking_user_currency_price && !!window.utag_data.booking_user_currency;}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data.booking_user_currency_price + " " + window.utag_data.booking_user_currency;}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":78,"f":0,"m":0,"s":1,"u":".*","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":79,"f":0,"m":0,"s":1,"u":".*","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"V","v":[""]}]}},{"f":0,"i":81,"evalAlways":true,"m":0,"s":1,"u":"reservation\\.barcelo\\.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"Notification_notificationWrapper\"][aria-label=\"notification-success\"]"]},{"t":"SelectorText","v":["[class*=\"Notification_notification\"] span"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":82,"evalAlways":true,"m":0,"s":1,"u":"reservation.barcelo.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*='Notification_notification'] [fill='#E40F13']"]},{"t":"SelectorText","v":["[class*=\"Notification_notification\"] span"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":83,"evalAlways":false,"m":1,"s":2,"u":".*","v":{"t":"MAE","v":[1,0,{"t":"E","v":[{"t":"FieldFilledNode","v":["[data-testid=\"coupon-input\"],.criteria-promo-codes_container input"]},{"t":"SelectorText","v":["[data-testid=\"coupon-input\"],.criteria-promo-codes_container input"]}]},{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try { var isOfferPage = !!document.querySelector(".c-coupon-compact__promo-code"); var offerAppliedInOfferPage = !document.querySelector(".c-coupon-compact__active").classList.contains("hidden"); if(isOfferPage && offerAppliedInOfferPage) { return true; } } catch(e) {}}}]},{"t":"JSValue","v":[{"fn":function () {try { return document.querySelector(".c-coupon-compact__promo-code").innerText; } catch(e) {}}}]}]},{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":[".coupon .c-coupon-compact .c-cta,.coupon .c-coupon-compact .c-cta *"]}]},{"t":"SelectorText","v":[".c-coupon-compact__promo-code"]}]},{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["div[data-testid=\"promotional-coupon\"] section form button,div[data-testid=\"group-code\"] section form button,div[data-testid=\"promotional-coupon\"] section form button *,div[data-testid=\"group-code\"] section form button *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { var promoContainer = QuantumMetricAPI.lastClicked.parentElement.parentElement; var inputValue = promoContainer.querySelector("input").value; return inputValue; } catch(e) {}}}]}]}]},"x":"QFL,QJS,QCE,QCE","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":84,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"MDE","v":[{"t":"JSValue","v":[{"fn":function () {try { return !!window.location && !!window.location.search && !!window.location.search.match(/(coupon|groupcode)=([^&]+)/) && !!window.location.search.match(/(coupon|groupcode)=([^&]+)/)[2]; } catch(e) {}}}]},{"t":"JSValue","v":[{"fn":function () {try { if (!!window.location && !!window.location.search && !!window.location.search.match(/(coupon|groupcode)=([^&]+)/) && !!window.location.search.match(/(coupon|groupcode)=([^&]+)/)[2]) { return window.location.search.match(/(coupon|groupcode)=([^&]+)/)[2]; } } catch(e) {}}}]},{"t":"JSValue","v":[{"fn":function () {try { return { "promo_code": window.location.search.match(/(coupon|groupcode)=([^&]+)/)[2], "code_type": window.location.search.match(/(coupon|groupcode)=([^&]+)/)[1] === 'coupon' ? "Promotional Code" : "Event Code" }; } catch(e) {}}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":true,"evalAlways":true,"excludeBlank":true,"i":85,"f":0,"m":1,"s":2,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[aria-controls=\"myaccount-container-login\"],[data-target-is-user-logged=true],.loggin-status-JS.user-logged,[data-target-is-user-logged=false],.c-aside-menu-user-item.js-item-myBarcelo.noUser-logged"]},{"t":"JSValueEx","v":[{"fn":function () {try { var qm_user_status = null; if ((window.location.href.match(/booking.barcelo.com/) && !document.querySelector('[aria-controls="myaccount-container-login"]')) || (window.location.href.match(/reservation.barcelo.com/) && document.querySelector('[data-target-is-user-logged=true]')) || document.querySelector('.loggin-status-JS.user-logged')) { qm_user_status = "Logged in"; // Find the prev flow and the landing flow of the user for event 86 var qm_user_status_place = null; // SABRE if (window.location.href.match(/booking.barcelo.com/)) { if (!document.querySelector('[aria-controls="myaccount-container-login"]')) { qm_user_status_place = 'Sabre'; } // CBS } else if (window.location.href.match(/reservation.barcelo.com/)) { if (document.querySelector('[data-target-is-user-logged=true]')) { qm_user_status_place = 'CBE'; } // BARCELO } else { if (document.querySelector('.loggin-status-JS.user-logged')) { qm_user_status_place = 'Barcelo'; } } if (qm_user_status_place && this.api && !this.api.getPrevEventData(86)) { this.api.sendEvent(86, 0, qm_user_status_place); } } else { qm_user_status = "Not logged in"; var qm_user_status_place = null; // CBS if (window.location.href.match(/reservation.barcelo.com/)) { if (document.querySelector('[data-target-is-user-logged=false]')) { qm_user_status_place = 'CBE'; } // BARCELO } else { if (document.querySelector('.c-aside-menu-user-item.js-item-myBarcelo.noUser-logged')) { qm_user_status_place = 'Barcelo'; } } } if (qm_user_status) { return (qm_user_status+" "+ qm_user_status_place); } } catch(e) { this.api.sendEvent(13, 0, "Logged user events: " + e); }}}]}]}},{"f":0,"i":86,"evalAlways":false,"m":0,"s":0,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"V","v":[""]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":89,"evalAlways":true,"m":1,"s":2,"u":"choose-payment","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"Payment\"] form [class*=\"Alert_error\"]"]},{"t":"JSValueEx","v":[{"fn":function () {try { // 1. Session var (set by admin script observer) var pm = this.api.getSessionVar("qm_payment_method"); if (pm) { return pm; } // 2. DOM fallback — button-based payment selector var btn = document.querySelector( '[data-testid="paymentMethods"] button[aria-pressed="true"]' ); if (btn) { var id = btn.getAttribute('id') || btn.getAttribute('data-value'); if (id) { return id.replace(/_/g, " ").substring(0, 100); } } } catch (e) {}}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":90,"f":0,"m":0,"s":1,"u":".*","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"V","v":[""]}]}},{"f":0,"i":93,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try { return !!document.referrer && !!document.referrer.match(/identity.barcelo.com/) && !!window.location && !!window.location.href && !window.location.href.match(/identity.barcelo.com/); } catch(e){}}}]},{"t":"JSValue","v":[{"fn":function () {try { if (document.referrer && document.referrer.match(/identity.barcelo.com/)) { if ((window.location.href.match(/booking.barcelo.com/) && !document.querySelector('[aria-controls="myaccount-container-login"]')) || (window.location.href.match(/reservation.barcelo.com/) && document.querySelector('[data-testid="my-barcelo-level-icon"]')) || document.querySelector('span.js-name-myb')) { this.api.sendEvent(261, 0, "loged"); return "Logged in"; } else { return "Not logged in"; } } } catch (e) { }}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":101,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":[".datepicker__month-day[class*=\"visible\"],.datepicker__month-button--next,.datepicker__month-button--prev,.datepicker__month-day[class*=\"visible\"] *,.datepicker__month-button--next *,.datepicker__month-button--prev *"]}]},{"t":"V","v":[""]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":107,"evalAlways":false,"m":0,"s":0,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try{ if(window.document.getElementById("checkin-fb").value == '') {return true;} else {return false;} }catch(e){}}}]},{"t":"V","v":[""]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":108,"evalAlways":false,"m":0,"s":0,"u":"reservation.barcelo.com","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try { return (!!window.utag_data.booking_market); } catch(e){}}}]},{"t":"JSValue","v":[{"fn":function () {try { if (!!window.utag_data && !!window.utag_data.booking_market) { return (window.utag_data.booking_market); } } catch(e){}}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":109,"evalAlways":false,"m":0,"s":0,"u":"www.barcelo.com","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try { return (!!window.utag_data.user_market_as); } catch(e){}}}]},{"t":"JSValue","v":[{"fn":function () {try { if (!!window.utag_data && !!window.utag_data.user_market_as) { return window.QMstringCleanerBarcelo(window.utag_data.user_market_as); } } catch(e){}}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":112,"evalAlways":false,"m":0,"s":1,"u":"barcelo.com\\/(barcelo-lanzarote-active-resort|royal-hideaway-corales-suites|royal-hideaway-corales-beach|barcelo-fuerteventura-royal-level-adults-only/|barcelo-fuerteventura-royal-level/|barcelo-fuerteventura-castillo/|barcelo-fuerteventura-mar/|barcelo-lanzarote-royal-level/)","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try{ return(window.pageYOffset >= 3000); } catch(e){}}}]},{"t":"V","v":[""]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":113,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try{ return(window.pageYOffset >= window.document.documentElement.scrollHeight/3); }catch(e){}}}]},{"t":"V","v":[""]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":114,"evalAlways":false,"m":1,"s":1,"u":"/extras","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["*,* *"]}]},{"t":"V","v":[""]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":115,"evalAlways":false,"m":0,"s":1,"u":"\\/es-es\\/(barcelo-lanzarote-active-resort|barcelo-lanzarote-royal-level|barcelo-fuerteventura-mar|barcelo-fuerteventura-castillo|barcelo-fuerteventura-royal-level|royal-hideaway-corales-beach|royal-hideaway-corales-suites)","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {try{ return(window.pageYOffset >= 2500); }catch(e){}}}]},{"t":"V","v":[""]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":116,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"JSONPath","v":["dates",{"t":"XHRResponse","v":["reservation-api\\.barcelo\\.com\\/hotel-availability-adapter\\/v1\\/hotels\\/.*\\/availability\\/by-dates"]}]},{"t":"JSValueEx","v":["(function() {\n var checkInDate = document.querySelector(\".mod--calendar .left-input input\");\n var checkOutDate = document.querySelector(\".mod--calendar .right-input input\");\n if(window.location.href.includes(\"reservation.barcelo\") && ((!!checkInDate && !!checkInDate.value) || (!!checkOutDate && !!checkOutDate.value))) {\n return '';\n } else {\n return window.location.href;\n }\n })();"]}]},"x":"QXJ","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":117,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"mod--cta-secondary\"][class*=\"booking-button-JS\"],[class*=\"mod--cta-secondary\"][class*=\"booking-button-JS\"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {return window.document.URL;}}]}]},"x":"QCE","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":118,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"mod--cta-primary\"][class*=\"booking-button-JS\"],[class*=\"mod--cta-primary\"][class*=\"booking-button-JS\"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {return window.document.URL;}}]}]},"x":"QCE","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":125,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["#checkin-fb,#checkout-fb,[class*=DatesDropdown_container],[class*=FastBooking_summaryButton]:nth-of-type(1),[class*=DatesButton_modalButton]:nth-of-type(1),#checkin-fb *,#checkout-fb *,[class*=DatesDropdown_container] *,[class*=FastBooking_summaryButton]:nth-of-type(1) *,[class*=DatesButton_modalButton]:nth-of-type(1) *"]}]},{"t":"V","v":[""]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":126,"f":0,"m":1,"s":2,"u":"reservation.barcelo.com/","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["form[autocomplete=\"on\"] .Form_buttonWrapper__Zz_mi button[type=\"submit\"],[class*=\"ContinueButton_buttonWrapper\"],form[autocomplete=\"on\"] .Form_buttonWrapper__Zz_mi button[type=\"submit\"] *,[class*=\"ContinueButton_buttonWrapper\"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {return window.document.URL;}}]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":133,"f":0,"m":0,"s":1,"u":".*","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class *= \"CartMobile_container\"],[class *= \"CartMobile_container\"] *"]}]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":138,"f":0,"m":1,"s":1,"u":"reservation.barcelo.com","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class *= \"MyBarceloLoginButton_container\"],[class *= \"MyBarceloLoginButton_container\"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {return window.document.URL;}}]}]}},{"f":0,"i":141,"evalAlways":false,"m":1,"s":1,"u":"reservation.barcelo.com/","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["button[class=\"cursor-pointer\"] img[alt=\"barcelo-logo\"],[class*=\"HeaderV2_contentWrapper\"] [class*=\"cursor-pointer\"],button[class=\"cursor-pointer\"] img[alt=\"barcelo-logo\"] *,[class*=\"HeaderV2_contentWrapper\"] [class*=\"cursor-pointer\"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {return window.document.URL;}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":149,"evalAlways":false,"m":1,"s":1,"u":"reservation.barcelo.com/","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"KeyValue","v":["value",".ExtrasInfo_container__agOnD button[type=\"button\"]"]}]},{"t":"JSValueEx","v":[{"fn":function () {return window.document.URL;}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":155,"f":0,"m":0,"s":0,"u":".*","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return true;}}]},{"t":"JSValue","v":[{"fn":function () {return window.document.URL;}}]}]}},{"f":0,"i":156,"evalAlways":false,"m":0,"s":1,"u":"reservation.barcelo.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class *= \"MealplanTag_mealplanTag\"]"]},{"t":"JSValueEx","v":[{"fn":function () {return document.querySelector('.MealplanTag_mealplanTag___hYVO').getAttribute('data-testid');}}]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":161,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/booking-confirmation","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!localStorage.getItem('qm_cart_val');}}]},{"t":"JSValue","v":[{"fn":function () {try { var val = parseFloat(localStorage.getItem('qm_cart_val')/100).toFixed(2); window.localStorage.removeItem('qm_cart_val'); return val; }catch(e){}}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":162,"evalAlways":true,"m":1,"s":2,"u":"reservation\\.barcelo\\.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*='AvailableRooms_errorSection']"]},{"t":"JSValueEx","v":[{"fn":function () {try { return ((!!this.api.getPrevEventData(162) && parseInt(this.api.getPrevEventData(162).value)) || 0) + 1; } catch (e) {}}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":165,"evalAlways":false,"m":0,"s":0,"u":"reservation.barcelo.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"MyBarceloSavingsCard_container\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":167,"evalAlways":false,"m":0,"s":0,"u":"reservation.barcelo.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class *= \"c-callmenow__modal-form\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":170,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data["cp.ux_rp1_cp"];}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data["cp.ux_rp1_cp"];}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":171,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data["cp.ux_rp3_cp"];}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data["cp.ux_rp3_cp"];}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":175,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-modal=\"LoginModal\"],[class*=\"B2CLoginModal_wrapper\"]"]},{"t":"V","v":[""]}]}},{"f":0,"i":178,"evalAlways":false,"m":1,"s":2,"u":"booking.barcelo.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"input-field_message\"]"]},{"t":"SelectorText","v":["[class*=\"input-field_message\"]"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":179,"evalAlways":true,"m":1,"s":2,"u":"booking.barcelo.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"message_type-error\"]"]},{"t":"JSValueEx","v":[{"fn":function () {try { if (document.querySelector('[class*="promo"] .message_type-error') && document.querySelector('[class*="promo"] input') && document.querySelector('[class*="promo"] input').value) { return document.querySelector('[class*="promo"] input').value; } else if (document.querySelector('[class*="coupon"] .message_type-error p.message_heading') && document.querySelector('[class*="coupon"] input') && document.querySelector('[class*="coupon"] input').value) { return document.querySelector('[class*="coupon"] input').value; } } catch(e) {}}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":180,"evalAlways":false,"m":1,"s":2,"u":"booking.barcelo.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".app_displayError"]},{"t":"SelectorText","v":[".app_displayError"]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":181,"evalAlways":false,"m":0,"s":0,"u":".*","v":{"t":"E","v":[{"t":"CookiePresent","v":["_gid"]},{"t":"CookieValue","v":["_gid"]}]},"x":"QCK","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":188,"evalAlways":false,"m":0,"s":0,"u":"reservation.barcelo.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"CartContent_container\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":192,"f":0,"m":1,"s":1,"u":"reservation.barcelo.com/","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"RouterLink_inlineLink\"],[class*=\"RouterLink_inlineLink\"] *"]}]},{"t":"V","v":[""]}]}},{"f":0,"i":194,"evalAlways":false,"m":0,"s":2,"u":"reservation.barcelo.com/","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data["booking_nights"];}}]},{"t":"JSValue","v":[{"fn":function () {return window.utag_data["booking_nights"];}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":195,"evalAlways":false,"m":1,"s":2,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".night-number-JS"]},{"t":"SelectorText","v":[".night-number-JS"]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":196,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*= \"c-fastbooking\"],[class*=\"Fastbooking_container\"]"]},{"t":"JSValueEx","v":[{"fn":function () {return window.document.URL;}}]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":197,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"JSValue","v":[{"fn":function () {return false;}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":198,"f":0,"m":0,"s":1,"u":".*","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"V","v":[""]}]}},{"f":0,"i":199,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"AvailableRooms_rooms_\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":200,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-warning ]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-warning]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-quantum-warning'); valores.push(valor); }); return valores;}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":201,"evalAlways":false,"m":1,"s":2,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-error]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-error]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-quantum-error'); valores.push(valor); }); return valores;}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"sessionInfoReq":true,"evalAlways":true,"excludeBlank":false,"i":202,"f":0,"m":0,"s":2,"u":"reservation.barcelo.com/","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-warning=\"no availability\"]"]},{"t":"JSValueEx","v":[{"fn":function () {try { if (!!window.location && !!window.location.search && !!window.location.search.match(/hotel=([^&]+)/) && !!window.location.search.match(/hotel=([^&]+)/)[1]) { return window.location.search.match(/hotel=([^&]+)/)[1]; } else if (!!window.utag_data && !!window.utag_data.hotel_id) { return window.utag_data.hotel_id; } }catch (e) {}}}]}]}},{"sessionInfoReq":true,"evalAlways":true,"excludeBlank":false,"i":203,"f":0,"m":0,"s":2,"u":"choose-payment","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-error=\"payment response: apc\"]"]},{"t":"JSValueEx","v":[{"fn":function () {try { // 1. Session var (set by admin script observer) var pm = this.api.getSessionVar("qm_payment_method"); if (pm) { return pm; } // 2. DOM fallback — button-based payment selector var btn = document.querySelector( '[data-testid="paymentMethods"] button[aria-pressed="true"]' ); if (btn) { var id = btn.getAttribute('id') || btn.getAttribute('data-value'); if (id) { return id.replace(/_/g, " ").substring(0, 100); } } } catch (e) {}}}]}]}},{"f":0,"i":204,"evalAlways":true,"m":0,"s":1,"u":"choose-payment","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-error=\"payment response: ape\"]"]},{"t":"JSValueEx","v":[{"fn":function () {try { // 1. Session var (set by admin script observer) var pm = this.api.getSessionVar("qm_payment_method"); if (pm) { return pm; } // 2. DOM fallback — button-based payment selector var btn = document.querySelector( '[data-testid="paymentMethods"] button[aria-pressed="true"]' ); if (btn) { var id = btn.getAttribute('id') || btn.getAttribute('data-value'); if (id) { return id.replace(/_/g, " ").substring(0, 100); } } } catch (e) {}}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"sessionInfoReq":true,"evalAlways":true,"excludeBlank":false,"i":205,"f":0,"m":0,"s":1,"u":"choose-payment","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-error=\"payment response: apd\"]"]},{"t":"JSValueEx","v":[{"fn":function () {try { // 1. Session var (set by admin script observer) var pm = this.api.getSessionVar("qm_payment_method"); if (pm) { return pm; } // 2. DOM fallback — button-based payment selector var btn = document.querySelector( '[data-testid="paymentMethods"] button[aria-pressed="true"]' ); if (btn) { var id = btn.getAttribute('id') || btn.getAttribute('data-value'); if (id) { return id.replace(/_/g, " ").substring(0, 100); } } } catch (e) {}}}]}]}},{"f":0,"i":206,"evalAlways":false,"m":0,"s":1,"u":"reservation.barcelo.com/","v":{"t":"MDE","v":[{"t":"SelectorPresent","v":["[data-quantum-warning=\"invalid coupon: NOT_FOUND\"]"]},{"t":"JSValueEx","v":[{"fn":function () {var valores = []; var elementos1 = document.querySelectorAll('[data-quantum-landings1-invalidcoupon]'); elementos1.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-landings1-invalidcoupon'); valores.push(valor); }); var elementos2 = document.querySelectorAll('[data-quantum-coupon]'); elementos2.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-coupon'); valores.push(valor); }); return valores;}}]},{"t":"JSValue","v":[{"fn":function () {try { var schema = { "Hotel Code": window.location.search.match(/hotel=([0-9]*)/)[1], "Arrival": window.location.search.match(/arrive=(\d{4}-\d{2}-\d{2})/)[1], "Departure": window.location.search.match(/depart=(\d{4}-\d{2}-\d{2})/)[1], "Market Campaign": window.location.search.match(/marketcampaign=(\w{2})/)[1] }; return schema; } catch(e) {}}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":207,"evalAlways":true,"m":1,"s":2,"u":"reservation.barcelo.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-warning=\"invalid coupon: NOT_VALID_YET\"]"]},{"t":"JSValueEx","v":[{"fn":function () {var valores = []; var elementos1 = document.querySelectorAll('[data-quantum-landings1-invalidcoupon]'); elementos1.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-landings1-invalidcoupon'); valores.push(valor); }); var elementos2 = document.querySelectorAll('[data-quantum-coupon]'); elementos2.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-coupon'); valores.push(valor); }); return valores;}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":208,"evalAlways":false,"m":1,"s":2,"u":"reservation.barcelo.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-warning=\"invalid coupon: TIMED_OUT\"]"]},{"t":"JSValueEx","v":[{"fn":function () {var valores = []; var elementos1 = document.querySelectorAll('[data-quantum-landings1-invalidcoupon]'); elementos1.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-landings1-invalidcoupon'); valores.push(valor); }); var elementos2 = document.querySelectorAll('[data-quantum-coupon]'); elementos2.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-coupon'); valores.push(valor); }); return valores;}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":209,"evalAlways":false,"m":1,"s":2,"u":"reservation.barcelo.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-warning=\"invalid coupon: NOT_IN_DATE_RANGE\"]"]},{"t":"JSValueEx","v":[{"fn":function () {var valores = []; var elementos1 = document.querySelectorAll('[data-quantum-landings1-invalidcoupon]'); elementos1.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-landings1-invalidcoupon'); valores.push(valor); }); var elementos2 = document.querySelectorAll('[data-quantum-coupon]'); elementos2.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-coupon'); valores.push(valor); }); return valores;}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":210,"evalAlways":false,"m":1,"s":2,"u":"reservation.barcelo.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-warning=\"invalid coupon: VALID\"]"]},{"t":"JSValueEx","v":[{"fn":function () {var valores = []; var elementos1 = document.querySelectorAll('[data-quantum-landings1-invalidcoupon]'); elementos1.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-landings1-invalidcoupon'); valores.push(valor); }); var elementos2 = document.querySelectorAll('[data-quantum-coupon]'); elementos2.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-coupon'); valores.push(valor); }); return valores;}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":212,"f":0,"m":1,"s":1,"u":"/choose-payment","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"cursor-pointer\"][class*=\"touch-security-zone\"][class*=\"mt-m\"],[class*=\"ButtonLink_container\"] [class*=\"Text_color-dark\"],[class*=\"cursor-pointer\"][class*=\"touch-security-zone\"][class*=\"mt-m\"] *,[class*=\"ButtonLink_container\"] [class*=\"Text_color-dark\"] *"]}]},{"t":"V","v":[""]}]}},{"f":0,"i":213,"evalAlways":false,"m":0,"s":2,"u":"booking.barcelo.com/confirm","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"guest-details_image\"]"]},{"t":"JSValueEx","v":[{"fn":function () {return document.querySelector("div.booking-summary-reservations_payment > div > div > img").alt;}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":214,"evalAlways":false,"m":1,"s":1,"u":"booking.barcelo.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class *= \"c-callmenow__modal-form\"] [class*=\"c-callmeback__modal-form\"] [class*=\"c-callmenow__modal-form-JS\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":215,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"c-header__switch-logo\"],[class*=\"c-header__switch-logo\"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {return window.document.URL;}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":219,"evalAlways":false,"m":1,"s":1,"u":"reservation.barcelo.com","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"swiper-wrapper\"],[class*=\"swiper-wrapper\"] *"]}]},{"t":"V","v":[""]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":226,"evalAlways":false,"m":1,"s":1,"u":"reservation.barcelo.com","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"NavigationButton_navigation\"],[class*=\"NavigationButton_navigation\"] *"]}]},{"t":"V","v":[""]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":true,"i":227,"f":0,"m":1,"s":2,"u":"reservation.barcelo.com","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-modal]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-modal]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-quantum-modal'); valores.push(valor); }); return valores;}}]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":true,"i":228,"f":0,"m":1,"s":2,"u":"reservation.barcelo.com/","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-warning=\"INVALID_GROUP_COUPON\"]"]},{"t":"JSValueEx","v":[{"fn":function () {var valores = []; var elementos1 = document.querySelectorAll('[data-quantum-landings1-invalidcoupon]'); elementos1.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-landings1-invalidcoupon'); valores.push(valor); }); var elementos2 = document.querySelectorAll('[data-quantum-coupon]'); elementos2.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-coupon'); valores.push(valor); }); return valores;}}]}]}},{"f":0,"i":229,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["#rooms-fb,#rooms-fb *"]}]},{"t":"V","v":[""]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":230,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["#checkin-fb,#checkin-fb *"]}]},{"t":"V","v":[""]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":236,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/choose-payment","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-user-action=\"edit-extras-step3\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":238,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/choose-payment","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-user-action=\"edit-room-step3\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":240,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/choose-payment","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-user-action=\"edit-dates-step3\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":242,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/choose-payment","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-user-action=\"edit-stay-step3\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":244,"evalAlways":false,"m":0,"s":1,"u":"reservation.barcelo.com/","v":{"t":"MDE","v":[{"t":"SelectorPresent","v":["[data-quantum-warning=\"invalid coupon: NOT_ACTIVE\"]"]},{"t":"JSValueEx","v":[{"fn":function () {var valores = []; var elementos1 = document.querySelectorAll('[data-quantum-landings1-invalidcoupon]'); elementos1.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-landings1-invalidcoupon'); valores.push(valor); }); var elementos2 = document.querySelectorAll('[data-quantum-coupon]'); elementos2.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-coupon'); valores.push(valor); }); return valores;}}]},{"t":"JSValue","v":[{"fn":function () {try { var schema = { "Hotel Code": window.location.search.match(/hotel=([0-9]*)/)[1], "Arrival": window.location.search.match(/arrive=(\d{4}-\d{2}-\d{2})/)[1], "Departure": window.location.search.match(/depart=(\d{4}-\d{2}-\d{2})/)[1], "Market Campaign": window.location.search.match(/marketcampaign=(\w{2})/)[1] }; return schema; } catch(e) {}}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":245,"evalAlways":true,"m":0,"s":2,"u":"choose-payment","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-warning='invalid coupon: step 3']"]},{"t":"JSValueEx","v":[{"fn":function () {var valores = []; var elementos1 = document.querySelectorAll('[data-quantum-landings1-invalidcoupon]'); elementos1.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-landings1-invalidcoupon'); valores.push(valor); }); var elementos2 = document.querySelectorAll('[data-quantum-coupon]'); elementos2.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-coupon'); valores.push(valor); }); return valores;}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":246,"evalAlways":false,"m":0,"s":1,"u":"reservation.barcelo.com/","v":{"t":"MDE","v":[{"t":"SelectorPresent","v":["[data-quantum-warning=\"invalid coupon: NOT_APPLICABLE \"]"]},{"t":"JSValueEx","v":[{"fn":function () {try { if (!!window.location && !!window.location.search && !!window.location.search.match(/coupon=([^&]+)/) && !!window.location.search.match(/coupon=([^&]+)/)[1]) { return window.location.search.match(/coupon=([^&]+)/)[1]; } }catch (e) {}}}]},{"t":"JSValue","v":[{"fn":function () {try { var schema = { "Hotel Code": window.location.search.match(/hotel=([0-9]*)/)[1], "Arrival": window.location.search.match(/arrive=(\d{4}-\d{2}-\d{2})/)[1], "Departure": window.location.search.match(/depart=(\d{4}-\d{2}-\d{2})/)[1], "Market Campaign": window.location.search.match(/marketcampaign=(\w{2})/)[1] }; return schema; } catch(e) {}}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":248,"evalAlways":true,"m":1,"s":2,"u":"www.barcelo.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-data-phone]"]},{"t":"SelectorText","v":["[data-data-phone]"]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":249,"evalAlways":false,"m":1,"s":1,"u":"reservation\\.barcelo\\.com/personal-data","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[data-quantum-user-action=\"edit-stay-step2\"],[data-quantum-user-action=\"edit-stay-step2\"] *"]}]},{"t":"V","v":[""]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":253,"evalAlways":false,"m":0,"s":2,"u":"reservation.barcelo.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-itinerary-number]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-itinerary-number]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-quantum-itinerary-number'); valores.push(valor); }); return valores;}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":255,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".sd [type='button'] [aria-label]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":256,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[aria-label='Hotel cerrado']"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":257,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"Day_disabledDate\"][aria-label]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":258,"f":0,"m":1,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["#selfreg\\:registrationForm\\:serverErrors"]},{"t":"SelectorText","v":["#selfreg\\:registrationForm\\:serverErrors .alert-srv-msg"]}]}},{"f":0,"i":259,"evalAlways":false,"m":1,"s":2,"u":"/identityb2c/ciamb2cselfreg","v":{"t":"E","v":[{"t":"SelectorPresent","v":["#clientErrors"]},{"t":"SelectorText","v":["#clientErrors span.alert-js-msg"]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":262,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/extras","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-target-extra-required=\"true\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":272,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".evg-popup .evg-main-panel #ctaTextCoupon.c-cta"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":273,"evalAlways":false,"m":0,"s":0,"u":"reservation\\.barcelo\\.com/booking-confirmation","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {if (window.utag_data && window.utag_data.booking_payment_method) { return true; }}}]},{"t":"JSValue","v":[{"fn":function () {if (window.utag_data && window.utag_data.booking_payment_method) { return window.utag_data.booking_payment_method; }}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":274,"evalAlways":false,"m":1,"s":2,"u":"reservation.barcelo.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-data-phone] [data-data-phone]"]},{"t":"SelectorText","v":["[data-data-phone] [data-data-phone]"]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":275,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["body"]},{"t":"JSValueEx","v":[{"fn":function () {// Get the start time when the page loads var startTime = new Date(); // Function to calculate time spent on page function getTimeOnPage() { var endTime = new Date(); var timeSpent = endTime - startTime; // Time in milliseconds // Convert to seconds or other units if needed var timeSpentInSeconds = Math.round(timeSpent / 1000); return timeSpentInSeconds; } // Example: Log time spent when the user leaves the page window.onbeforeunload = function() { var timeOnCurrentPage = getTimeOnPage(); console.log("Time spent on page:", timeOnCurrentPage, "seconds"); console.log("QMAPI IS ON:", this.api && this.api.getSub()); // Send data to your server for tracking if needed this.api.sendEvent(276, 0, timeOnCurrentPage); // ... }; return '';}}]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":276,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"JSValue","v":[{"fn":function () {return false;}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":277,"evalAlways":false,"m":1,"s":1,"u":"/extras","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["div[class*=\"CartExtras\"] > button,div[class*=\"CartExtras\"] > button *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { var valueToReturn = ''; if(!!window.utag_data.extra_total_price){ var originalPrice = window.utag_data.extra_total_price; var originalCurrency = window.utag_data.extra_currency; if(!!originalCurrency && originalPrice > 0){ valueToReturn = QuantumMetricAPI.currencyConvertFromToValue(originalPrice, originalCurrency, "EUR"); if(isNaN(valueToReturn)){ valueToReturn = ""; } } } else { valueToReturn = ""; } return valueToReturn; } catch (e) { }}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":278,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-restriction-closed]"]},{"t":"SelectorText","v":["[data-quantum-restriction-closed]"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":279,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-restriction-no-arrival]"]},{"t":"SelectorText","v":["[data-quantum-restriction-no-arrival]"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":280,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-restriction-no-departure]"]},{"t":"SelectorText","v":["[data-quantum-restriction-no-departure]"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":281,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-restriction-min-stay]"]},{"t":"SelectorText","v":["[data-quantum-restriction-min-stay]"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":282,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-restriction-max-stay]"]},{"t":"SelectorText","v":["[data-quantum-restriction-max-stay]"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":283,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-restriction-lead-days-time]"]},{"t":"SelectorText","v":["[data-quantum-restriction-lead-days-time]"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":285,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"MDE","v":[{"t":"SelectorPresent","v":[".c-head-hotel-info__booking-info-price-myb .c-price [data-market-price]"]},{"t":"SelectorText","v":[".c-head-hotel-info__booking-info-price-myb .c-price [data-market-price]"]},{"t":"JSValue","v":[{"fn":function () {try { var currency = window.utag_data.store_currency; var price = document.querySelector(".c-head-hotel-info__booking-info-price-myb .c-price [data-market-price]"); return { "price": parseFloat(price.innerHTML), "currency": currency }; } catch(e) {}}}]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":287,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com","v":{"t":"MDE","v":[{"t":"JSValue","v":[{"fn":function () {try { if(!!window.utag_data && window.utag_data.booking_check_in_date) { return true; } } catch(e) {}}}]},{"t":"JSValue","v":[{"fn":function () {try { if(!!window.utag_data && window.utag_data.hotel_id) { return window.utag_data.hotel_id; } } catch(e) {}}}]},{"t":"JSValue","v":[{"fn":function () {try { function returnTotalAmt(bookingGuests) { var guestSum = 0; if(typeof bookingGuests === "string" && bookingGuests.length === 1) { return parseInt(bookingGuests); } else if (typeof bookingGuests === "string" && bookingGuests.length > 1) { bookingGuests = bookingGuests.split(","); for (var i = 0; i < bookingGuests.length; i++ ) { guestSum += parseInt(bookingGuests[i]); } return guestSum; } else if (Array.isArray(bookingGuests) && typeof bookingGuests[0] === 'number') { for (var j = 0; j < bookingGuests.length; j++ ) { guestSum += bookingGuests[j]; } return guestSum; } } if(!!window.utag_data) { var bookingInfo = window.utag_data; return { "hotel_id": bookingInfo.hotel_id && bookingInfo.hotel_id, "booking_check_in_date": bookingInfo.booking_check_in_date && bookingInfo.booking_check_in_date, "booking_check_out_date": bookingInfo.booking_check_out_date && bookingInfo.booking_check_out_date, "booking_adults": returnTotalAmt(bookingInfo.booking_adults), "booking_children": returnTotalAmt(bookingInfo.booking_children), "booking_nights": bookingInfo.booking_nights && bookingInfo.booking_nights, "available_rooms_quantity": returnTotalAmt(bookingInfo.available_rooms_quantity), "booking_has_coupon": bookingInfo.booking_has_coupon && bookingInfo.booking_has_coupon, "booking_coupon_name" : bookingInfo.booking_coupon_name && bookingInfo.booking_coupon_name, "booking_room_quantity": bookingInfo.booking_room_quantity && parseInt(bookingInfo.booking_room_quantity), "referrer": bookingInfo.page_referrer, "booking_board_basis": bookingInfo.booking_board_basis && bookingInfo.booking_board_basis, "booking_rate_code": bookingInfo.booking_rate_code && bookingInfo.booking_rate_code, "booking_extras": bookingInfo.booking_extras && Array.isArray(bookingInfo.booking_extras) && bookingInfo.booking_extras.length, "user_my_barcelo_level": bookingInfo.user_my_barcelo_level && bookingInfo.user_my_barcelo_level, "language": bookingInfo.page_language, "currency": bookingInfo.currency }; } } catch (e) { }}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":288,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"MDE","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["#fastbooking_cta_booking_hotel,#hotelinfo_cta_booking,#fastbooking_cta_booking_hotel *,#hotelinfo_cta_booking *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { var checkInDate = document.querySelector(".mod--calendar .left-input input"); var checkOutDate = document.querySelector(".mod--calendar .right-input input"); if(!!checkInDate.value && !!checkOutDate.value && window.utag_data) { var price = document.querySelector(".c-head-hotel-info__booking-info-price-myb .c-price [data-market-price]"); return parseInt(price.innerText); } else { return''; } } catch(e) {}}}]},{"t":"JSValue","v":[{"fn":function () {try { var checkInDate = document.querySelector(".mod--calendar .left-input input"); var checkOutDate = document.querySelector(".mod--calendar .right-input input"); if(!!checkInDate.value && !!checkOutDate.value && window.utag_data) { var price = document.querySelector(".c-head-hotel-info__booking-info-price-myb .c-price [data-market-price]"); var hotelID = window.utag_data.hotel_id; var currency = window.utag_data.store_currency; return { "booking_price": parseInt(price.innerText), "hotel_ID": hotelID, "currency": currency }; } } catch(e) {}}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":true},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":true,"i":289,"f":0,"m":0,"s":2,"u":"reservation.barcelo.com","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-current-price]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-current-price]'); var valores = []; elementos.forEach(function(elemento) { var valor = elemento.getAttribute('data-quantum-current-price'); var limpio = valor.replace(/[.,]/g, ''); if (/^\d+$/.test(limpio)) { valores.push(parseInt(limpio, 10)); } }); window.QuantumMetricAPI.setSessionVar('price1stRoom', valores); return valores;}}]}]}},{"f":0,"i":290,"evalAlways":false,"m":0,"s":1,"u":"reservation.barcelo.com","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-previous-price]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-previous-price]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-quantum-previous-price'); valores.push(valor); }); return valores;}}]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":292,"evalAlways":true,"m":1,"s":2,"u":"reservation\\.barcelo\\.com","v":{"t":"E","v":[{"t":"JSValueEx","v":[{"fn":function () {try { if(QuantumMetricAPI.getPrevEventData(376) && QuantumMetricAPI.getPrevEventData(376).value && QuantumMetricAPI.getPrevEventData(289) && QuantumMetricAPI.getPrevEventData(289).value) { return true; } } catch(e) {}}}]},{"t":"JSValueEx","v":[{"fn":function () {try { var relativePrice = QuantumMetricAPI.getPrevEventData(376).value || QuantumMetricAPI.getSessionVar('relativePrice'); if(relativePrice && QuantumMetricAPI.getPrevEventData(289) && QuantumMetricAPI.getPrevEventData(289).value) { var CMS_Price_principal_Relativo = relativePrice; var CBE_Price_of_1st_Room = QuantumMetricAPI.getPrevEventData(289).value; var diferencia; diferencia = (CMS_Price_principal_Relativo-CBE_Price_of_1st_Room); return diferencia; } } catch(e) {}}}]}]},"x":"QJS","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":294,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"AcceleratorTag_container__GVhKA\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":295,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/choose-payment","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"HotelDetails_container\"] [class*=\"HotelDetails_imageWrapper\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":296,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"MDE","v":[{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"JSValue","v":[{"fn":function () {return false;}}]},{"t":"JSValue","v":[{"fn":function () {return false;}}]}]},"x":"QJS","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":297,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["li.accordion-item div:has([data-parent-element*=\"firstLevel\"]),li.accordion-item div:has([data-parent-element*=\"firstLevel\"]) *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { return this.api.lastClicked.closest('.active').innerText.split(" - ")[0]; } catch(e) {}}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":298,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[id*=\"-fb\"],[id*=\"-fb\"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { return this.api.lastClicked.id.split("-")[0]; } catch(e) {}}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":299,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":[".destination-hotels-JS .hidden-facet-JS,.destination-hotels-JS .hidden-facet-JS *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { return (this.api || QuantumMetricAPI).lastClicked ? (this.api || QuantumMetricAPI).lastClicked.innerText : ""; } catch (e) {}}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":300,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["li.active .accordion-item div:has([data-parent-element*=\"/country\"]),li.active .accordion-item div:has([data-parent-element*=\"/country\"]) *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { return this.api.lastClicked.closest('.active').innerText.split(" - ")[0]; } catch(e) {}}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":301,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["li.active .accordion-item.active li[data-parent-element*=\"/state\"],li.active .accordion-item.active li[data-parent-element*=\"/state\"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { return this.api.lastClicked.closest('.active').innerText.split(" - ")[0]; } catch(e) {}}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":302,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":[".form-submenu-discount div.my-2:not(.hidden) input:not(:checked),.form-submenu-discount div.my-2:not(.hidden) input:not(:checked) *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { return QuantumMetricAPI.lastClicked.getAttribute("data-value"); } catch(e) {}}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":304,"evalAlways":false,"m":1,"s":2,"u":"/choose-payment","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"AcceleratorTag_container__GVhKA\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":305,"evalAlways":false,"m":1,"s":2,"u":"/personal-data","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"AcceleratorTag_container__GVhKA\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":306,"evalAlways":false,"m":1,"s":2,"u":"reservation.barcelo.com\\/\\?","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"AcceleratorTag_container__GVhKA\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":307,"evalAlways":false,"m":1,"s":1,"u":".*","v":{"t":"MDE","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":[".c-megamenu .submenu-container img,.c-megamenu .submenu-container a,.c-megamenu .submenu-container img *,.c-megamenu .submenu-container a *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { var menuItem = this.api.lastClicked.closest(".c-megamenu").querySelector(".c-megamenu__menu-main-item .mod--active"); return menuItem && menuItem.innerText; } catch(e) {}}}]},{"t":"JSValue","v":[{"fn":function () {try { var clickedText, subsectionTitle, menuItemIndex, menuItem; var lastClicked = this.api.lastClicked; var megamenu = lastClicked.closest(".c-megamenu"); var activeMenuItem = megamenu.querySelector(".c-megamenu__menu-main-item .mod--active"); if (activeMenuItem) { var menuItems = megamenu.querySelectorAll(".c-megamenu__menu-main-item"); for (var i = 0; i < menuItems.length; i++) { if (menuItems[i].contains(activeMenuItem)) { menuItemIndex = i; menuItem = activeMenuItem.innerText; break; } } } var getSubsectionTitle = function(element) { var popoverContentBlock = element.closest(".c-popover__content-block"); var launchersContainer = element.closest(".launchers-container"); if (launchersContainer) { return launchersContainer.querySelector(".launchers-container__header-title .cmp-title__text").innerText; } else if (popoverContentBlock) { var titleEl = popoverContentBlock.querySelector(".cmp-title") || popoverContentBlock.querySelector(".title") || popoverContentBlock.querySelector(".cmp-title__text"); return titleEl ? titleEl.innerText : null; } return null; }; var getClickedText = function(element) { var launcherLink = element.closest(".JS-c-launcher-link"); var hotelCard = element.closest(".c-hotel-card"); var card = element.closest(".c-card"); var collectionList = element.closest(".c-collection-list"); if (launcherLink) { return launcherLink.querySelector(".c-launcher__image-content-title").innerText; } else if (hotelCard) { return hotelCard.querySelector(".c-hotel-card__header-title").innerText; } else if (card) { return card.querySelector(".c-card__titles-title").innerText; } else if (collectionList) { return element.innerText; } return element.innerText; }; if (menuItemIndex === 0) { menuItem = "Hotels"; } else if (menuItemIndex === 1) { menuItem = "Offers"; } else if (menuItemIndex === 2) { menuItem = "Inspiration"; } else if (menuItemIndex === 3) { menuItem = "Weddings"; } subsectionTitle = getSubsectionTitle(lastClicked); clickedText = getClickedText(lastClicked); return { "Megamenu_Category": menuItem, "Submenu_Category": subsectionTitle, "Title": clickedText }; } catch(e) { console.error("Error in megamenu script:", e); return {}; }}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":308,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["img[alt='special'],img[alt=\"special\"],[alt='especial'][data-testid='my-barcelo-level-icon']"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":309,"f":0,"m":0,"s":0,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["img[alt='unique']"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":310,"f":0,"m":0,"s":0,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["img[alt='essential'],img[alt=\"básico\"],img[alt=\"essencial\"],img[alt=\"essential\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":true,"i":311,"f":0,"m":0,"s":1,"u":".*","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {if (window.utag_data && window.utag_data.user_myb_level) { return true; }}}]},{"t":"JSValue","v":[{"fn":function () {if (window.utag_data && window.utag_data.user_myb_level) { return window.utag_data.user_myb_level; }}}]}]}},{"f":0,"i":312,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["DIV[id='evg-surveys'] > DIV"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":313,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"MAE","v":[1,0,{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-currency-code]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-currency-code]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-quantum-currency-code'); valores.push(valor); }); return valores;}}]}]},{"t":"E","v":[{"t":"SelectorPresent","v":["[data-target-mobile-currency-code]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-target-mobile-currency-code]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-target-mobile-currency-code'); valores.push(valor); }); return valores;}}]}]}]},"x":"QCC,QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":314,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"CouponsEditorModal_container\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":315,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"RateSwitch_container\"] [class*=\"Toggle_toggle\"],[class*=\"MyBarceloSavingsCardV2_content\"] [class*=\"Toggle_toggle\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":316,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"RateSwitch_appTag\"][class*=\"Tag_bold\"],[class*=\"RoomsSummary_appTag\"][class*=\"Tag_bold\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":317,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"CampaignRibbon_mainRibbonWrapper\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":318,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"CampaignRibbon_couponRibbonWrapper\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":319,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-modal='StaffAndFriendsModal']"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":320,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"ribbon\"] [class*=\"c-ribbon\"][class*=\"visibleComponent\"] [class*=\"c-ribbon__light\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":321,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".c-megamenu__submenu.mod--active"]},{"t":"V","v":[""]}]}},{"f":0,"i":323,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"MAE","v":[1,0,{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-coupon]"]},{"t":"JSValueEx","v":[{"fn":function () {try{ return window.location.search.match(/coupon=([^&]+)/)[1]; } catch(e) {}}}]}]},{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":[".coupon .c-coupon-compact .c-cta,.coupon .c-coupon-compact .c-cta *"]}]},{"t":"SelectorText","v":[".c-coupon-compact__promo-code"]}]}]},"x":"QCC,QCE","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":325,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"Login_container\"] [class*=\"Button_primary\"],[class*=\"myb-user-login__content-wrapper\"] [class*=\"myb-user-login__form-button\"],[class*=\"Login_container\"] [class*=\"Button_primary\"] *,[class*=\"myb-user-login__content-wrapper\"] [class*=\"myb-user-login__form-button\"] *"]}]},{"t":"V","v":[""]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":326,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"Registration_container\"] [class*=\"Button_primary\"],[class*=\"myb-user-register__content-wrapper\"] [class*=\"myb-user-register__form-button\"],[class*=\"Registration_container\"] [class*=\"Button_primary\"] *,[class*=\"myb-user-register__content-wrapper\"] [class*=\"myb-user-register__form-button\"] *"]}]},{"t":"V","v":[""]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":327,"f":0,"m":0,"s":2,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"Login_container\"],[class*=\"content-JS-myb-notlogged\"][class*=\"mod--active\"] [class*=\"myb-user-login__content-wrapper\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":328,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"Registration_container\"],[class*=\"content-JS-myb-notlogged\"][class*=\"mod--active\"] [class*=\"myb-user-register__content-wrapper\"]"]},{"t":"V","v":[""]}]}},{"f":0,"i":329,"evalAlways":true,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"Registration_container\"] [class*=\"Text_color-support-error-dark\"],[class*=\"myb-user-register\"] [class*=\"myb-user-register__form-error\"]"]},{"t":"SelectorText","v":["[class*=\"Registration_container\"] [class*=\"Text_color-support-error-dark\"],[class*=\"myb-user-register\"] [class*=\"myb-user-register__form-error\"]"]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":true},{"f":0,"i":330,"evalAlways":false,"m":1,"s":1,"u":"reservation.barcelo.com","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*= \"Header_menu\"] [class*= \"cursor-pointer\"],[data-quantum-language-code],[class*= \"Header_menu\"] [class*= \"cursor-pointer\"] *,[data-quantum-language-code] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-language-code]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-quantum-language-code'); valores.push(valor); }); return valores;}}]}]},"x":"QCE","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":331,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"CurrencySection_container\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":332,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"LanguageSection_container\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"f":0,"i":334,"evalAlways":false,"m":0,"s":1,"u":"reservation.barcelo.com/","v":{"t":"MDE","v":[{"t":"SelectorPresent","v":["[data-quantum-warning=\"invalid coupon: TIMED_OUT\"]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-landings1-invalidcoupon]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-quantum-landings1-invalidcoupon'); valores.push(valor); }); return valores;}}]},{"t":"JSValue","v":[{"fn":function () {try { var schema = { "Hotel Code": window.location.search.match(/hotel=([0-9]*)/)[1], "Arrival": window.location.search.match(/arrive=(\d{4}-\d{2}-\d{2})/)[1], "Departure": window.location.search.match(/depart=(\d{4}-\d{2}-\d{2})/)[1], "Market Campaign": window.location.search.match(/marketcampaign=(\w{2})/)[1] }; return schema; } catch(e) {}}}]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":335,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"first-view-btn\"][class*=\"firstView-JS\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":336,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"RoomV2_rateSelectorContainer\"] [class*=\"RateSelectorV2_taxWrapper\"] [class*=\"Text_color-dark\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":337,"f":0,"m":0,"s":1,"u":".*","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["body,body *"]}]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":338,"f":0,"m":1,"s":1,"u":"reservation\\.barcelo\\.com/personal-data","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"CartMobile_buttonFooter\"] [class*=\"Button_primary\"],[class*=\"CartMobile_buttonFooter\"] [class*=\"Button_primary\"] *"]}]},{"t":"V","v":[""]}]}},{"f":0,"i":339,"evalAlways":false,"m":1,"s":2,"u":".*","v":{"t":"E","v":[{"t":"FieldFilledNode","v":[".destination-JS"]},{"t":"SelectorText","v":[".destination-JS"]}]},"x":"QFL","sessionInfoReq":true,"excludeBlank":true},{"f":0,"i":340,"evalAlways":true,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["#widget123 #widget123_main #widget123_main_hotel_price"]},{"t":"JSValueEx","v":[{"fn":function () {// Precio del primer contenedor var priceContainer = document.querySelector(".Price_container__MSwmL"); var price1 = 0; if (priceContainer) { // Usamos aria-label porque ya trae el número var ariaValue = priceContainer.getAttribute("aria-label"); // Ej: "USD 324" price1 = parseFloat(ariaValue.replace(/[^\d.]/g, "")); // -> 324 } // Precio del segundo contenedor var priceNumber = document.querySelector("#widget123_main_hotel_price_number"); var price2 = 0; if (priceNumber) { price2 = parseFloat(priceNumber.textContent.trim()); // -> 325 } // Restar valores var diferencia = price1 - price2; return diferencia;}}]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":341,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["#widget123_container[data-hotel='oneWidget'][style='']"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":342,"evalAlways":false,"m":0,"s":1,"u":"choose-payment","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class *= \"MyBarceloLoginButton_container\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":343,"evalAlways":false,"m":0,"s":1,"u":"choose-payment","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-language-code],[class*= \"Header_menu\"] [class*= \"cursor-pointer\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":344,"evalAlways":false,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".Carousel_paginationWrapper__LmLEH:nth-child(2)"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"f":0,"i":345,"evalAlways":false,"m":0,"s":0,"u":"reservation\\.barcelo\\.com/","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".FastBookingDesktop_dataWrapper__AbNSP h2"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":true,"i":346,"f":0,"m":1,"s":2,"u":"reservation.barcelo.com/management/cancellation/","x":"QFL","v":{"t":"E","v":[{"t":"FieldFilledNode","v":["[data-testid='survey_option']"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":true,"i":347,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"B2CLoginModal_container\"] [class*=\"Text_color-support-error-dark\"]"]},{"t":"SelectorText","v":["[class*=\"B2CLoginModal_container\"] [class*=\"Text_color-support-error-dark\"]"]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":348,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"GridSwitch_button__\"]"]},{"t":"JSValueEx","v":[{"fn":function () {{ const selected = document.querySelector('.GridSwitch_button__vEqFI.GridSwitch_selected__F2hD3'); if (!selected) return null; const text = selected.querySelector('span')?.textContent?.trim().toLowerCase(); if (text?.includes('list')) return 'list'; if (text?.includes('column')) return 'column'; return null; }}}]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":349,"f":0,"m":0,"s":1,"u":".*","x":"QCE,QCC","v":{"t":"MAE","v":[0,0,{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"RateSelector_button__\"],[class*=\"RateSelector_button__\"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {{ const selected = document.querySelector('.GridSwitch_button__vEqFI.GridSwitch_selected__F2hD3'); if (!selected) return null; const text = selected.querySelector('span')?.textContent?.trim().toLowerCase(); if (text?.includes('list')) return 'list'; if (text?.includes('column')) return 'column'; return null; }}}]}]},{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"GridSwitch_button__\"]"]},{"t":"V","v":[""]}]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":true,"i":350,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-123compare]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-123compare]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-quantum-123compare'); valores.push(valor); }); return valores;}}]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":352,"f":0,"m":1,"s":1,"u":".*","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":[".SurveyDropdown_itemsWrapper__hAPvG,.SurveyDropdown_itemsWrapper__hAPvG *"]}]},{"t":"SelectorHtml","v":[{"t":"SelectorElement","v":[".SurveyDropdown_itemsWrapper__hAPvG"]}]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":353,"f":0,"m":1,"s":1,"u":".*","x":"QCE,QCC","v":{"t":"MAE","v":[0,0,{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["button.SurveyDropdown_listElement__E_2fD,button.SurveyDropdown_listElement__E_2fD *"]}]},{"t":"SelectorHtml","v":[{"t":"SelectorElement","v":[".SurveyDropdown_listElement__E_2fD"]}]}]},{"t":"E","v":[{"t":"SelectorPresent","v":["[data-testid='survey_suboption']"]},{"t":"V","v":[""]}]}],"event_id":353}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":354,"f":0,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {// Seleccionar contenedores posibles de habitaciones var contenedoresHabitacion = document.querySelectorAll('article, div.room, section.room'); var habitacionesMultiRegimen = []; for (var i = 0; i < contenedoresHabitacion.length; i++) { var habitacion = contenedoresHabitacion[i]; // Busca los botones posibles de régimen en cada habitación var botonesRegimen = habitacion.querySelectorAll('button[data-target-mealplan-stay-price]'); if (botonesRegimen.length > 1) { habitacionesMultiRegimen.push(habitacion); } } return true;}}]},{"t":"JSValue","v":[{"fn":function () {// Seleccionar contenedores posibles de habitaciones var contenedoresHabitacion = document.querySelectorAll('article, div.room, section.room'); var habitacionesMultiRegimen = []; for (var i = 0; i < contenedoresHabitacion.length; i++) { var habitacion = contenedoresHabitacion[i]; // Busca los botones posibles de régimen en cada habitación var botonesRegimen = habitacion.querySelectorAll('button[data-target-mealplan-stay-price]'); if (botonesRegimen.length > 1) { habitacionesMultiRegimen.push(habitacion); } } // Console log clásico return (habitacionesMultiRegimen.length);}}]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":355,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"c-heroslider__central-block__btns-wrapper\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":356,"f":0,"m":0,"s":2,"u":"reservation\\.barcelo\\.com/","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {if (!!window.utag_data && !!window.window.utag_data.available_board_basis.length) { return window.window.utag_data.available_board_basis.length; }}}]},{"t":"JSValue","v":[{"fn":function () {if (!!window.utag_data && !!window.window.utag_data.available_board_basis.length) { return window.window.utag_data.available_board_basis.length; }}}]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":357,"f":0,"m":0,"s":0,"u":"reservation\\.barcelo\\.com/","x":"QJS","v":{"t":"E","v":[{"t":"JSValue","v":[{"fn":function () {return !!window.utag_data && !!window.utag_data.user_chosen_email;}}]},{"t":"JSValue","v":[{"fn":function () {var user_chosen_email = window.utag_data.user_chosen_email; // La variable a comprobar if (user_chosen_email === "user@email.com") { return ("false"); // Si es igual, devuelve false } else { return ("true"); // En cualquier otro caso, devuelve true }}}]}]}},{"f":0,"i":358,"evalAlways":false,"m":0,"s":1,"u":"area-privada|private-area","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".cards-1__right-level"]},{"t":"VXF","v":[{"t":"SelectorText","v":[".cards-1__right-level"]},{"t":"XFRR","v":[{"p":"^\\s*(?:必須レベル|(?:(?:level|nivel|n[ií]vel|niveau|ebene|livello|stufe|úroveň|уровень)\\s+(?:essential|esencial|essentiel|essentiell|essenziale|essentieel|essenc?ial)|(?:essential|esencial|essentiel|essentiell|essenziale|essentieel|essenc?ial)\\s+(?:level|nivel|n[ií]vel|niveau|ebene|livello|stufe|úroveň|уровень)))\\s*$","f":"i"},"Essential"]},{"t":"XFRR","v":[{"p":"^\\s*(?:einzigartiges\\s+niveau|(?:(?:level|nivel|n[ií]vel|niveau|ebene)\\s+unique|unique\\s+(?:level|nivel|n[ií]vel|niveau|ebene)))\\s*$","f":"i"},"Unique"]},{"t":"XFRR","v":[{"p":"^\\s*(?:(?:level|nivel|n[ií]vel|ebene)\\s+(?:special|especial)|(?:special|especial)\\s+(?:level|nivel|n[ií]vel|ebene))\\s*$","f":"i"},"Special"]}]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":359,"f":0,"m":0,"s":1,"u":"mybarcelo/area-privada/","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":[".campaign-list button,.campaign-list button *"]}]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":360,"f":0,"m":0,"s":1,"u":"area-privada|private-area","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".campaign-list button"]},{"t":"JSValueEx","v":[{"fn":function () {try { var els = document.querySelectorAll('.campaign-list button'); var observer = new IntersectionObserver(function (entries, observer) { entries.forEach(function (entry) { if (entry.isIntersecting) { observer.unobserve(entry.target); return true; // note: only returns from this forEach callback } }); }, { threshold: 0.5 }); els.forEach(function (el) { observer.observe(el); }); } catch (err) { }}}]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":361,"f":0,"m":0,"s":1,"u":"reservation\\.barcelo\\.com/management/","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["div[aria-labelledby=\"dates-modal-title\"] button[type=\"submit\"],div[aria-labelledby=\"dates-modal-title\"] button[type=\"submit\"] div,div[aria-labelledby=\"dates-modal-title\"] button[type=\"submit\"] *,div[aria-labelledby=\"dates-modal-title\"] button[type=\"submit\"] div *"]}]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":362,"f":0,"m":0,"s":1,"u":"area-privada|private-area","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["form[name=\"checkin-form\"] button[type=\"button\"],form[name=\"checkin-form\"] button[type=\"button\"] *"]}]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":true,"excludeBlank":false,"i":363,"f":0,"m":1,"s":1,"u":"area-privada|private-area","x":"QCE","v":{"t":"MDE","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":[".js-save-preferences,.js-save-preferences *"]}]},{"t":"JSValueEx","v":[{"fn":function () {return true;}}]},{"t":"JSValue","v":[{"fn":function () {function getText(el) { return el ? (el.innerText || el.textContent || '').replace(/\s+/g, ' ').trim() : null; } // find the form the old-school way var form = document.querySelector('.js-preference-form'); // 1) Selected preference tiles (have class "mod--active") var selectedPrefs = []; var tiles = form.querySelectorAll('.js-search-item.mod--active'); for (var i = 0; i < tiles.length; i++) { var v = tiles[i].getAttribute('data-value'); selectedPrefs.push(v || getText(tiles[i])); } // 2) Checked checkboxes (Communication) var checkedBoxes = []; var cbs = form.querySelectorAll('input[type="checkbox"]:checked'); for (var j = 0; j < cbs.length; j++) { var cb = cbs[j]; var lbl = form.querySelector('label[for="' + cb.id + '"]'); checkedBoxes.push({ id: cb.id || null, value: cb.value || true, label: getText(lbl) }); } // 3) Language & currency var langSel = form.querySelector('.js-input-language'); var curSel = form.querySelector('.js-input-currency'); var result = { preferences: selectedPrefs, // e.g. ["golf","beach"] communication: checkedBoxes, // [{id, value, label}, ...] language: langSel ? langSel.value : null, // e.g. "en_GB" currency: curSel ? curSel.value : null // e.g. "GBP" }; // console.log(result); return result;}}]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":364,"f":0,"m":1,"s":1,"u":"area-privada|private-area","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["a.JS-launcher-CTA[aria-label=\"Delete account\"],a.JS-launcher-CTA[aria-label=\"Delete account\"] *"]}]},{"t":"V","v":[""]}]}},{"f":0,"i":365,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"CheckboxField_label\"] [class*=\"AdditionalRequests_checkboxLabel\"],[class*=\"CartContent_container\"] [class*=\"ReservationDetails_container\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":366,"f":0,"m":0,"s":1,"u":"choose-payment","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"CheckoutLayout_contentWrapper\"] [class*=\"ContinueButton_buttonWrapper\"] [class*=\"Button_primary\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":367,"f":0,"m":1,"s":2,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-user-level]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-user-level]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-quantum-user-level'); valores.push(valor); }); return valores;}}]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":368,"f":0,"m":1,"s":2,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-user-discount]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-quantum-user-discount]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-quantum-user-discount'); valores.push(valor); }); return valores;}}]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":370,"f":0,"m":0,"s":2,"u":"reservation\\.barcelo\\.com/","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-quantum-cms-logged]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":371,"f":0,"m":0,"s":2,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"AvailableRoomsLayout_bookingStepperWrapper\"] [class*=\"BookingStepper_container\"],[class*=\"CheckoutLayout_bookingStepperWrapper\"] [class*=\"BookingStepper_container\"]"]},{"t":"V","v":[""]}]}},{"f":0,"i":372,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"ProgressBar_progressBar\"] [class*=\"ProgressBar_progress\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":true,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":true,"i":373,"f":0,"m":1,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".error--add-alias.my-barcelo-prices .tingle-modal-box .tingle-modal-box__content.modal-width-small.simple[role=\"dialog\"][aria-modal=\"true\"] .c-modal[data-type=\"modal\"] [data-cmp-src=\"/content/dam/barcelo/commons/icons/dynamics/warning.svg\"]"]},{"t":"SelectorText","v":[".error--add-alias.my-barcelo-prices .tingle-modal-box .tingle-modal-box__content.modal-width-small.simple[role=\"dialog\"][aria-modal=\"true\"] .c-modal ,.error--add-alias.my-barcelo-prices .tingle-modal-box .c-modal"]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":374,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".c-stripemenu__icon-btn"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":375,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".c-stripemenu__text-btn-smpl"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":true,"i":376,"f":0,"m":0,"s":2,"u":".*","x":"QCE","v":{"t":"MDE","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":[".c-head-hotel-info__booking .c-cta,.booking-JS [type='button'],.c-hotel-room-list .c-hotel-room-list__footer-booking .JS-launcher-CTA,.c-head-hotel-info__booking .c-cta *,.booking-JS [type='button'] *,.c-hotel-room-list .c-hotel-room-list__footer-booking .JS-launcher-CTA *"]}]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('.c-head-hotel-info__booking-info-price-myb .c-mybprice__value[data-relativeprice]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-relativeprice'); valores.push(valor); }); window.QuantumMetricAPI.setSessionVar('relativePrice', valores); return valores;}}]},{"t":"JSValue","v":[{"fn":function () {}}]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":true,"i":377,"f":0,"m":0,"s":2,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".c-mybprice__value[data-initial-base-value]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('.c-mybprice__value[data-initial-base-value]'); var valores = []; elementos.forEach(function(elemento){ var valor = elemento.getAttribute('data-initial-base-value'); valores.push(valor); }); window.QuantumMetricAPI.setSessionVar('pricePrincipal', valores); return valores;}}]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":378,"f":0,"m":0,"s":2,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".currency-current-JS"]},{"t":"SelectorText","v":[".currency-current-JS"]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":379,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"LoginIncentivePopup_container\"],[class*=\"LoginIncentiveModal_modalContainer\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":380,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"datepicker__month-day \"] [class*=\"mod--yellow-text\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":381,"f":0,"m":1,"s":1,"u":".*","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"datepicker__month-day \"],[class*=\"datepicker__month-day \"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { var td = QuantumMetricAPI.lastClicked; if (td) { // Caso original var el = td.querySelector('.price-day-calendar'); // 🔹 Nuevo caso añadido (cuando tiene symbols también) if (!el) { el = td.querySelector('.price-day-calendar-symbols'); } if (el) { var classes = el.className.split(/\s+/); for (var i = 0; i < classes.length; i++) { if (classes[i].startsWith('mod--')) { return classes[i].slice('mod--'.length); // ahora sí devuelve "green-text" } } } } } catch(e) {}}}]}]}},{"f":0,"i":382,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"datepicker__month-day \"] [class*=\"mod--red-text\"]"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":383,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"datepicker__month-day \"] [class*=\"mod--green-text\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":384,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"Day_dayButton\"] [class*=\"DotPriceRange_dot_low\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":385,"f":0,"m":1,"s":2,"u":".*","x":"QCE","v":{"t":"E","v":[{"t":"ValueClause","v":[{"t":"ElementClickedNode","v":[]},{"t":"Matches","v":["[class*=\"Day_dayButton\"],[class*=\"Day_dayButton\"] *"]}]},{"t":"JSValueEx","v":[{"fn":function () {try { var td = QuantumMetricAPI.lastClicked; console.log(td); // "red-text" (or whatever comes after mod--) return td; } catch(e) {}}}]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":386,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"Day_dayButton\"] [class*=\"DotPriceRange_dot_medium\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":387,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"Day_dayButton\"] [class*=\"DotPriceRange_dot_high\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":true,"i":388,"f":0,"m":1,"s":2,"u":".*","x":"QFL","v":{"t":"E","v":[{"t":"FieldFilledNode","v":["#chatbot_inspirame > div > div > div.flex.flex-col.h-full.transition-all.duration-300.ease-in-out.relative.z-10 > div.flex-1.overflow-y-auto.p-4.custom-scrollbar > div > div.text-center.py-6.sm\\:py-16 > div.mt-6.mb-2.px-2 > div > div > textarea,[class*=\"flex-1\"] textarea"]},{"t":"SelectorText","v":["#chatbot_inspirame > div > div > div.flex.flex-col.h-full.transition-all.duration-300.ease-in-out.relative.z-10 > div.flex-1.overflow-y-auto.p-4.custom-scrollbar > div > div.text-center.py-6.sm\\:py-16 > div.mt-6.mb-2.px-2 > div > div > textarea,[class*=\"flex-1\"] textarea"]}]}},{"f":0,"i":389,"evalAlways":false,"m":0,"s":2,"u":".*","v":{"t":"MAE","v":[0,0,{"t":"E","v":[{"t":"SelectorPresent","v":["[data-target-is-user-logged=true],[data-target-is-user-logged=false]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-target-is-user-logged]'); var valores = []; elementos.forEach(function(elemento){   var valor = elemento.getAttribute('data-target-is-user-logged');   valores.push(valor); }); return valores;}}]}]},{"t":"E","v":[{"t":"ValueClause","v":[{"t":"URLPropValue","v":[{"t":"ObjPathValue","v":[{"t":"WV","v":[]},"/location/href"]},"pathname"]},{"t":"Is","v":["/extras"]}]},{"t":"V","v":[""]}]}],"event_id":389},"x":"QCC,QUR","sessionInfoReq":true,"excludeBlank":false},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":390,"f":0,"m":0,"s":2,"u":".*","x":"QCC,QUR","v":{"t":"MAE","v":[0,0,{"t":"E","v":[{"t":"SelectorPresent","v":["[data-target-is-user-logged=true],[data-target-is-user-logged=false]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-target-is-user-logged]'); var valores = []; elementos.forEach(function(elemento){   var valor = elemento.getAttribute('data-target-is-user-logged');   valores.push(valor); }); return valores;}}]}]},{"t":"E","v":[{"t":"ValueClause","v":[{"t":"URLPropValue","v":[{"t":"ObjPathValue","v":[{"t":"WV","v":[]},"/location/href"]},"pathname"]},{"t":"Is","v":["/choose-payment"]}]},{"t":"V","v":[""]}]}],"event_id":390}},{"sessionInfoReq":true,"evalAlways":false,"excludeBlank":false,"i":391,"f":0,"m":0,"s":2,"u":".*","x":"QCC,QUR","v":{"t":"MAE","v":[0,0,{"t":"E","v":[{"t":"SelectorPresent","v":["[data-target-is-user-logged=true],[data-target-is-user-logged=false]"]},{"t":"JSValueEx","v":[{"fn":function () {var elementos = document.querySelectorAll('[data-target-is-user-logged]'); var valores = []; elementos.forEach(function(elemento){   var valor = elemento.getAttribute('data-target-is-user-logged');   valores.push(valor); }); return valores;}}]}]},{"t":"E","v":[{"t":"ValueClause","v":[{"t":"URLPropValue","v":[{"t":"ObjPathValue","v":[{"t":"WV","v":[]},"/location/href"]},"pathname"]},{"t":"Is","v":["/personal-data"]}]},{"t":"V","v":[""]}]}],"event_id":391}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":392,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"AvailableRooms_USPCampaignWrapper\"] [class*=\"USPCampaignFilter_dropdown\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":393,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"usp-campaign-banner_container\"]"]},{"t":"V","v":[""]}]}},{"f":0,"i":394,"evalAlways":false,"m":0,"s":1,"u":".*","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[data-testid='Paga ahora Tarifa segura'],[data-testid='Pay now Secure rate'],[data-testid='Pay now Secure Rate'],[data-testid='ادفع الآن السعر الآمن'],[data-testid='Оплатить сейчас Возвратный тариф'],[data-testid='Pague agora Tarifa segura'],[data-testid='Pague agora Tarifa Segura'],[data-testid='Zaplaťte nyní Bezpečný tarif'],[data-testid='Şimdi öde Güvenli fiyat'],[data-testid='Paga ora Tariffa sicura'],[data-testid='Payez maintenant Tarif garanti'],[data-testid='Jetzt zahlen Sicherer Tarif'],[data-testid='Zapłać teraz Taryfa Ubezpieczona'],[data-testid='Takojšnje plačilo Varna tarifa']"]},{"t":"V","v":[""]}]},"x":"QCC","sessionInfoReq":false,"excludeBlank":false},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":395,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"cro-modal\"] [class*=\"cro-modal-title\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":396,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"home\"][class*=\"blog\"][class*=\"wp-custom-logo\"][class*=\"wp-theme-bex\"][class*=\"hfeed\"][class*=\"no-sidebar\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":397,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"archive\"][class*=\"tax-tax_destination\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":398,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"wp-singular\"][class*=\"plan-template-default\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":399,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"archive\"][class*=\"post-type-archive\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":400,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"wp-singular\"][class*=\"property-template-default\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":401,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":[".archive.hfeed.no-sidebar.post-type-archive.post-type-archive-product.wp-custom-logo.wp-theme-bex"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":402,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"AvailableRooms_collapsibleCardPanel\"]"]},{"t":"V","v":[""]}]}},{"sessionInfoReq":false,"evalAlways":false,"excludeBlank":false,"i":403,"f":0,"m":0,"s":1,"u":".*","x":"QCC","v":{"t":"E","v":[{"t":"SelectorPresent","v":["[class*=\"tingle-modal-box\"] [class*=\"c-modal\"]"]},{"t":"V","v":[""]}]}}]},"ipEncryption":"NO_ENC","publicKeyString":"WyJ4b01XODliWmJ4MytkK2FqTHo1N1RhT2RKWVl1QzJPNEZ1NThqNDJGZlhncUc2ZWRsVEpXdXArOUJHNndremg1bldsZ2hJRkRCRytjUGNVeENXeVIwUUFxQXh4d09ZOWZTOEpJSkxKeE12MDhoY0Q1QXA5MDl3TFNvYXA5Z3YrV09wejZQVndPQkg5M0ozbFcvN244bGYyR3ZnL2pJaW94dnlkaTJlanZPanloYTV6VGlEaDluQnlFTkFXUWt4dnUyaDduQ09RQkloN2tXZGtsdG5MeVFCSmpTbUpnRktYU3RGS0pZZ2NwZTZzdEFISVNwTThkYXBvbCtaeGxVTjRRdkdDdWZHdDZIdnN6VHh0N0NNMlJTNU1QWDhhVzRmR3RqMDFJam5Za2tUODd6MnF0NjFhb0Z5ZURYaE53WmFRbVUwSWVzOGgxUVI1czJWTktFQ0tyZ3c9PSIsIkFRQUIiXQ==","sub":"barcelo"}); window.QMstringCleanerBarcelo=function(e){try{if("string"==typeof e){var t=e.toLowerCase(),n={"à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ß":"ss"};return t.replace(/[^ -~]/g,(function(e){return n[e]||e})).replace(/\s+/g," ").trim()}window.QuantumMetricAPI_barcelo.sendEvent(13,0,"QMstringCleaner Error value: "+e)}catch(e){window.QuantumMetricAPI_barcelo.sendEvent(13,0,"QMstringCleaner Error: "+e)}},function(){var e=/\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b/,t="quantum-window-message",n=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}(),a="quantum-window-"+n,o=null,r=null;function c(){try{var e=o.length+1;o=null,window.QuantumMetricAPI_barcelo.sendEvent(71,0,e)}catch(e){window.QuantumMetricAPI_barcelo.sendEvent(13,0,"Admin - logQuantumEvent function Error: "+e)}}window.onstorage=function(i){if(i.key===t&&"ping"===i.newValue)!function(){try{localStorage.setItem(a,n),localStorage&&localStorage[a]&&localStorage.removeItem(a)}catch(e){window.QuantumMetricAPI_barcelo.sendEvent(13,0,"Admin - pong function Error: "+e)}}();i.key.match(e)&&null!==i.newValue&&null!==o&&(r&&clearTimeout(r),o.push(i.newValue),r=setTimeout(c,200))},function(){try{o=[],localStorage.setItem(t,"ping"),localStorage&&localStorage[t]&&localStorage.removeItem(t),r=setTimeout(c,200)}catch(e){window.QuantumMetricAPI_barcelo.sendEvent(13,0,"Admin - ping function Error: "+e)}}()}(),window.activityNames&&window.experienceNames&&window.activityNames.length>0&&window.experienceNames.length>0&&window.activityNames.length===window.experienceNames.length&&(console.log(window.activityNames),setTimeout((function(){console.log(window.activityNames);for(var e=0;eparseInt(n))&&(sessionStorage.setItem("QM_scrollPercentage",t),window.QuantumMetricAPI_barcelo.sendEvent(197,0,parseInt(t)),window.QuantumMetricAPI_barcelo.sendEvent(198,0))}catch(e){console.error("Error storing scroll percentage:",e)}var a}),200)})}(),document.addEventListener("touchstart",handleTouchStart,!1),document.addEventListener("touchmove",handleTouchMove,!1);var xDown=null,yDown=null;function getTouches(e){return e.touches}function handleTouchStart(e){var t=getTouches(e)[0];xDown=t.clientX,yDown=t.clientY}function handleTouchMove(e){if(xDown&&yDown){var t=e.touches[0].clientX,n=e.touches[0].clientY,a=xDown-t,o=yDown-n;Math.abs(a)>Math.abs(o)&&(e.target.closest(".swiper-slide")?window.QuantumMetricAPI_barcelo.sendEvent(226,0):e.target.closest(".carousel-slide")&&window.QuantumMetricAPI_barcelo.sendEvent(220,0)),xDown=null,yDown=null}}!function(){try{setTimeout((function(){if(window.utag_data){var e=window.utag_data,t={search_total_guests:parseInt(e.search_total_guests),search_room_quantity:parseInt(e.search_room_quantity),search_hotel_name:e.search_value,search_hotel_id:e.hotel_id,search_check_in_date:e.search_check_in_date,search_check_out_date:e.search_check_out_date,search_has_coupon:e.search_has_coupon,search_adults:parseInt(e.search_adults),search_advance_days:parseInt(e.search_advance_days),search_children:parseInt(e.search_children),search_nights:parseInt(e.search_nights),search_type:e.search_type,search_value_level:e.search_value_level,search_discount_type:!!document.querySelector(".form-submenu-discount input:checked")&&document.querySelector(".form-submenu-discount input:checked").getAttribute("data-value"),language:e.page_language,currency:e.user_selected_currency,hotel_division:e.hotel_division};window.QuantumMetricAPI_barcelo.sendEvent(296,0,t.search_hotel_name,t)}}),500)}catch(e){}}(),function(){if(!window.__qm_payment_observer_init){window.__qm_payment_observer_init=!0;try{if(-1===window.location.href.indexOf("choose-payment"))return;var e=function(){try{var e=document.querySelector('[data-testid="paymentMethods"] button[aria-pressed="true"]');if(e){var t=e.getAttribute("id")||e.getAttribute("data-value");t&&window.QuantumMetricAPI_barcelo.setSessionVar("qm_payment_method",t.replace(/_/g," "))}}catch(e){}};e();var t=document.querySelector('[data-testid="paymentMethods"]');t&&t.addEventListener("click",(function(t){t.target.closest("button[data-value]")&&setTimeout(e,50)}))}catch(e){window.QuantumMetricAPI_barcelo.sendEvent(13,0,"Payment Method Observer Error: "+e)}}}();; (function(){if(window.QuantumMetricAPI) window.QuantumMetricAPI.conversionRates = {"AED":3.6725,"AFN":64.749999,"ALL":79.313023,"AMD":363.159514,"ANG":1.79,"AOA":912.843,"ARS":1508.6446,"AUD":1.401091,"AWG":1.80125,"AZN":1.7,"BAM":1.68789,"BBD":2,"BDT":123.454663,"BGN":1.693953,"BHD":0.377233,"BIF":2984.385455,"BMD":1,"BND":1.268474,"BOB":12.455016,"BRL":5.1229,"BSD":1,"BTC":0.000012845143,"BTN":95.541634,"BWP":13.477977,"BYN":3.038418,"BZD":2.012091,"CAD":1.387981,"CDF":2309.803769,"CHF":0.81873,"CLF":0.023793,"CLP":939.47,"CNH":6.707675,"CNY":6.7091,"COP":3104.647724,"CRC":450.67753,"CUC":1,"CUP":25.75,"CVE":95.161057,"CZK":21.043596,"DJF":178.156546,"DKK":6.475132,"DOP":58.884958,"DZD":133.161375,"EGP":51.5057,"ERN":15,"ETB":161.490981,"EUR":0.866206,"FJD":2.20855,"FKP":0.741172,"GBP":0.741172,"GEL":2.6,"GGP":0.741172,"GHS":11.465139,"GIP":0.741172,"GMD":73.500003,"GNF":8794.953747,"GTQ":7.638601,"GYD":209.306814,"HKD":7.843247,"HNL":26.85153,"HRK":6.525578,"HTG":130.759175,"HUF":316.0865,"IDR":17672.531505,"ILS":3.05405,"IMP":0.741172,"INR":95.812651,"IQD":1310.579834,"IRR":1374600,"ISK":120.98,"JEP":0.741172,"JMD":158.029872,"JOD":0.709,"JPY":154.39583333,"KES":129.48,"KGS":87.45,"KHR":4057.139687,"KMF":424.999927,"KPW":900,"KRW":1345.75781,"KWD":0.308725,"KYD":0.833693,"KZT":451.445784,"LAK":22383.96376,"LBP":89578.293635,"LKR":328.900115,"LRD":174.56968,"LSL":16.154344,"LYD":6.327781,"MAD":9.34877,"MDL":17.40956,"MGA":4306.51377,"MKD":53.198164,"MMK":2099.5,"MNT":3599,"MOP":8.081124,"MRU":40.228705,"MUR":47.119998,"MVR":15.45,"MWK":1734.779612,"MXN":17.02345,"MYR":4.0689,"MZN":63.909994,"NAD":16.154483,"NGN":1325.69,"NIO":36.817279,"NOK":9.307925,"NPR":152.869549,"NZD":1.730778,"OMR":0.384514,"PAB":1,"PEN":3.364388,"PGK":4.516171,"PHP":62.861508,"PKR":277.3506,"PLN":3.752074,"PYG":5924.776609,"QAR":3.646783,"RON":4.5496,"RSD":101.631917,"RUB":83.852565,"RWF":1475.702075,"SAR":3.751475,"SBD":8.013006,"SCR":13.70175,"SDG":601.5,"SEK":9.757668,"SGD":1.270448,"SHP":0.741172,"SLE":24.55,"SLL":20969.5,"SOS":571.759438,"SRD":37.9185,"SSP":130.26,"STD":22281.8,"STN":21.144386,"SVC":8.753776,"SYP":13002,"SZL":16.156899,"THB":33.237,"TJS":9.253885,"TMT":3.51,"TND":2.91986,"TOP":2.40776,"TRY":48.622238,"TTD":6.790369,"TWD":31.7654,"TZS":2638.128,"UAH":44.563285,"UGX":3871.490871,"USD":1,"UYU":40.280141,"UZS":11764.533109,"VES":831.447131,"VND":25990.903623,"VUV":118.45,"WST":2.7293,"XAF":568.193788,"XAG":0.01579317,"XAU":0.00023193,"XCD":2.70255,"XCG":1.803016,"XDR":0.730312,"XOF":568.193788,"XPD":0.00076947,"XPF":103.365853,"XPT":0.00055657,"YER":237.050029,"ZAR":16.216913,"ZMW":19.308791,"ZWG":26.768,"ZWL":322}})();